2011-04-08 01:09:05 +04: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-09-30 17:37:35 +04:00
|
|
|
|
2009-09-30 17:38:23 +04: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)
|
|
|
|
SET(CMAKE_C_FLAGS_INIT "-qthreaded -qalias=noansi -qhalt=e")
|