summaryrefslogtreecommitdiff
path: root/share/cmake-3.5/Modules/Compiler/XL-C.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'share/cmake-3.5/Modules/Compiler/XL-C.cmake')
-rwxr-xr-xshare/cmake-3.5/Modules/Compiler/XL-C.cmake8
1 files changed, 8 insertions, 0 deletions
diff --git a/share/cmake-3.5/Modules/Compiler/XL-C.cmake b/share/cmake-3.5/Modules/Compiler/XL-C.cmake
new file mode 100755
index 0000000..97dd017
--- /dev/null
+++ b/share/cmake-3.5/Modules/Compiler/XL-C.cmake
@@ -0,0 +1,8 @@
+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")