a33fb493de
This was added without explanation by commit v2.8.2~1138 (Add initial XL C compiler flags for safer builds, 2009-09-30). It is not consistent with our default C++ flags for XL and disables several optimizations, so drop it from our default flags for C. Suggested-by: Todd Gamblin <tgamblin@llnl.gov>
9 lines
382 B
CMake
9 lines
382 B
CMake
include(Compiler/XL)
|
|
__compiler_xl(C)
|
|
set(CMAKE_C_FLAGS_RELEASE_INIT "${CMAKE_C_FLAGS_RELEASE_INIT} -DNDEBUG")
|
|
set(CMAKE_C_FLAGS_MINSIZEREL_INIT "${CMAKE_C_FLAGS_MINSIZEREL_INIT} -DNDEBUG")
|
|
|
|
# -qthreaded = Ensures that all optimizations will be thread-safe
|
|
# -qhalt=e = Halt on error messages (rather than just severe errors)
|
|
set(CMAKE_C_FLAGS_INIT "-qthreaded -qhalt=e")
|