Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "Add '-O0' flag for: cmake -DCMAKE_BUILD_TYPE=Debug"
authorMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 5 Oct 2019 21:50:01 +0000 (23:50 +0200)
committerMartin Quinson <martin.quinson@ens-rennes.fr>
Sat, 5 Oct 2019 21:50:55 +0000 (23:50 +0200)
commit4cfc3f57e7d6f5d43094279be48433ef2f7aa6a6
treec24ae53bb06a6e56c39503fc498aa8d3ab92dfac
parent97f49b8e3b5b7a086ab06ee41ddc24bcdb3b5a6f
Revert "Add '-O0' flag for: cmake -DCMAKE_BUILD_TYPE=Debug"

The SimGrid way to request non-optimized builds is
-Denable_compile_optimizations=OFF

I agree that this is not very user-friendly, and your commit looked
nice, but it actually broke the build as enable_debug was set to false
in release mode. As a result, -DNDEBUG was passed to the compilation,
removing all xbt_assert() and leading to many compilation issues since
our code does not compile without the asserts.

This reverts commit a4d4e2488e05031945fa3f1dd887e34c05cfa948.
CMakeLists.txt