[cfe-dev] Release+Asserts equivalent when using Visual Studio on Windows?
Michael Spencer
bigcheesegs at gmail.com
Thu Jan 24 11:35:50 PST 2013
On Thu, Jan 24, 2013 at 5:50 AM, NAKAMURA Takumi <geek4civic at gmail.com> wrote:
> Timur,
>
> It seems controlling assertions is disabled on cmake vs. I don't know why.
> In other generators, LLVM_ENABLE_ASSERTIONS can control.
>
> ...Takumi
>
> 2013/1/24 Timur Iskhodzhanov <timurrrr at google.com>:
>> Hello Clang developers,
>>
>> Is there any way I can build a Release+Asserts build on Windows in VS?
>>
>> I've used Debug builds for "sanity" checking and RelWithDebInfo for
>> testing large build targets.
>> However, now that I've spent a day debugging a simple copy-paste
>> mistake in RelWithDebInfo build which was assert-catchable in Debug
>> mode,
>> I think I'd prefer Release+Asserts+DebInfo or Release+Asserts over
>> Release+DebInfo.
>>
>> Is there a simple way I can achieve that?
>> E.g. some flag to cmake?
>>
>> Thanks!
>> --
>> Timur
If i remember correctly, MSVC freaks out if you don't have NDEBUG
defined in Release mode.
- Michael Spencer
More information about the cfe-dev
mailing list