diff options
-rw-r--r-- | Modules/Compiler/XL-C.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Compiler/XL-C.cmake b/Modules/Compiler/XL-C.cmake index cc4c7eb..8f66557 100644 --- a/Modules/Compiler/XL-C.cmake +++ b/Modules/Compiler/XL-C.cmake @@ -1,5 +1,10 @@ SET(CMAKE_C_VERBOSE_FLAG "-V") +# -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") + SET(CMAKE_C_FLAGS_DEBUG_INIT "-g") SET(CMAKE_C_FLAGS_RELEASE_INIT "-O -DNDEBUG") SET(CMAKE_C_FLAGS_MINSIZEREL_INIT "-O -DNDEBUG") |