summaryrefslogtreecommitdiff
path: root/share/cmake-3.10/Modules/Compiler/XL-ASM.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'share/cmake-3.10/Modules/Compiler/XL-ASM.cmake')
-rw-r--r--share/cmake-3.10/Modules/Compiler/XL-ASM.cmake12
1 files changed, 12 insertions, 0 deletions
diff --git a/share/cmake-3.10/Modules/Compiler/XL-ASM.cmake b/share/cmake-3.10/Modules/Compiler/XL-ASM.cmake
new file mode 100644
index 0000000..9177b39
--- /dev/null
+++ b/share/cmake-3.10/Modules/Compiler/XL-ASM.cmake
@@ -0,0 +1,12 @@
+set(CMAKE_ASM_VERBOSE_FLAG "-V")
+
+# -qthreaded = Ensures that all optimizations will be thread-safe
+# -qhalt=e = Halt on error messages (rather than just severe errors)
+string(APPEND CMAKE_ASM_FLAGS_INIT " -qthreaded -qhalt=e -qsourcetype=assembler")
+
+string(APPEND CMAKE_ASM_FLAGS_DEBUG_INIT " -g")
+string(APPEND CMAKE_ASM_FLAGS_RELEASE_INIT " -O -DNDEBUG")
+string(APPEND CMAKE_ASM_FLAGS_MINSIZEREL_INIT " -O -DNDEBUG")
+string(APPEND CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT " -g -DNDEBUG")
+
+set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s )