<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<div>
<div style="font-family: Calibri,sans-serif; font-size: 11pt;">You can, but that probably won't give you what you want, since the debug libraries will be used which are slow. And debug vs release impacts the abi, which is why it freaks out if you define NDEBUG.<br>
</div>
</div>
<hr>
<span style="font-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;">From:
</span><span style="font-family: Tahoma,sans-serif; font-size: 10pt;">Timur Iskhodzhanov</span><br>
<span style="font-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;">Sent:
</span><span style="font-family: Tahoma,sans-serif; font-size: 10pt;">1/24/2013 11:42 AM</span><br>
<span style="font-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;">To:
</span><span style="font-family: Tahoma,sans-serif; font-size: 10pt;">Michael Spencer</span><br>
<span style="font-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;">Cc:
</span><span style="font-family: Tahoma,sans-serif; font-size: 10pt;">clang-dev Developers</span><br>
<span style="font-family: Tahoma,sans-serif; font-size: 10pt; font-weight: bold;">Subject:
</span><span style="font-family: Tahoma,sans-serif; font-size: 10pt;">Re: [cfe-dev] Release+Asserts equivalent when using Visual Studio on Windows?</span><br>
<br>
<div class="BodyFragment"><font size="2"><span style="font-size:10pt;">
<div class="PlainText">That's sad.<br>
<br>
OK, is there a (simple) way to enable optimizations in the Debug mode<br>
instead? :)<br>
<br>
2013/1/24 Michael Spencer <bigcheesegs@gmail.com>:<br>
> On Thu, Jan 24, 2013 at 5:50 AM, NAKAMURA Takumi <geek4civic@gmail.com> wrote:<br>
>> Timur,<br>
>><br>
>> It seems controlling assertions is disabled on cmake vs. I don't know why.<br>
>> In other generators, LLVM_ENABLE_ASSERTIONS can control.<br>
>><br>
>> ...Takumi<br>
>><br>
>> 2013/1/24 Timur Iskhodzhanov <timurrrr@google.com>:<br>
>>> Hello Clang developers,<br>
>>><br>
>>> Is there any way I can build a Release+Asserts build on Windows in VS?<br>
>>><br>
>>> I've used Debug builds for "sanity" checking and RelWithDebInfo for<br>
>>> testing large build targets.<br>
>>> However, now that I've spent a day debugging a simple copy-paste<br>
>>> mistake in RelWithDebInfo build which was assert-catchable in Debug<br>
>>> mode,<br>
>>> I think I'd prefer Release+Asserts+DebInfo or Release+Asserts over<br>
>>> Release+DebInfo.<br>
>>><br>
>>> Is there a simple way I can achieve that?<br>
>>> E.g. some flag to cmake?<br>
>>><br>
>>> Thanks!<br>
>>> --<br>
>>> Timur<br>
><br>
> If i remember correctly, MSVC freaks out if you don't have NDEBUG<br>
> defined in Release mode.<br>
><br>
> - Michael Spencer<br>
<br>
<br>
<br>
-- <br>
Timur Iskhodzhanov,<br>
Google Russia<br>
_______________________________________________<br>
cfe-dev mailing list<br>
cfe-dev@cs.uiuc.edu<br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br>
</div>
</span></font></div>
</body>
</html>