Details
Description
The LLVM project has a CMake option which enables asserts in C code in any build type, including RelWithDebInfo, etc. This seems like an useful thing to have.
It can reduce number of builds needed in CI (we don't have a Debug build for MacOS now). Some bugs may only manifest in Release builds. Sanitizers run faster on Release builds.
Coverity warns about assert calls with side effects, so enabling asserts all the time should be safe (Coverity would scream if it had any effects on functionality).
Attachments
Issue Links
- is related to
-
DISPATCH-1929 Allow producing a release build with asserts enabled
- Closed