Skip to main content
Dave Nadler
Senior III
August 9, 2019
Question

BUG: release build missing NDEBUG define

  • August 9, 2019
  • 1 reply
  • 733 views

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

This topic has been closed for replies.

1 reply

Pavel A.
Super User
August 10, 2019

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

-- pa

Dave Nadler
Senior III
August 10, 2019

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