cmake/Modules/Compiler/XL-C.cmake

10 lines
475 B
CMake
Raw Normal View History

2011-06-19 15:41:06 +03:00
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")
2009-10-04 10:30:41 +03:00
# -qthreaded = Ensures that all optimizations will be thread-safe
# -qalias=noansi = Turns off type-based aliasing completely (safer optimizer)
# -qhalt=e = Halt on error messages (rather than just severe errors)
2013-03-16 19:13:01 +02:00
set(CMAKE_C_FLAGS_INIT "-qthreaded -qalias=noansi -qhalt=e")