Asserts in C++ code not working for debug builds?
kinke via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Sat Jul 9 01:38:46 PDT 2016
On Saturday, 9 July 2016 at 08:28:22 UTC, Johan Engelen wrote:
> On Friday, 8 July 2016 at 20:55:50 UTC, David Nadlinger wrote:
>> IIRC, the LLVM ABI changes depending on whether (N)DEBUG is
>> enabled when including the headers, which has actually led to
>> hard to debug issues in the past.
> Every now and then, the need to remove NDEBUG dependency in
> headers pops up on the LLVM maillist. I don't think it's solved
Nope, e.g., I can't build a debug LDC with a RelWithDebInfo LLVM
and LLVM assertions explicitly enabled (on Windows, with MSVC).
So I simply use a RelWithDebInfo LDC, assertions enabled.
More information about the digitalmars-d-ldc