cancel
Showing results for 
Search instead for 
Did you mean: 

BUG: release build missing NDEBUG define

In projects generated by CubeMX, the release build is missing predefined preprocessor symbol NDEBUG. This is part of the C/C++ standard for decades (implicitly in the assert.h specification). Lots of existing code depends on this symbol to exclude debug code for release builds...

There, an easy one to fix!

Please confirm when someone has written a ticket for this,

Thanks,

Best Regards, Dave

2 REPLIES 2
Pavel A.
Evangelist III

Does CubeMX indeed create projects with separate debug and release configurations?

-- pa

@Pavel A.​ Yes, its quite tedious to set up configurations. IIRC all other tools like CubeMX I've used create both.