diff options
author | Alex Neundorf <neundorf@kde.org> | 2011-02-12 09:24:24 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2011-02-23 20:16:22 (GMT) |
commit | 00735d40556a97996697d546f6efb3bd4592202a (patch) | |
tree | fe6f0cf5afee0c887d43e9b93add14da76ff7463 /Modules/Compiler | |
parent | d3e9e8a078a01df4a50f824e0a41b7ca8caf99bf (diff) | |
download | CMake-00735d40556a97996697d546f6efb3bd4592202a.zip CMake-00735d40556a97996697d546f6efb3bd4592202a.tar.gz CMake-00735d40556a97996697d546f6efb3bd4592202a.tar.bz2 |
Add suport for ASM for the IBM XL compiler
Alex
Diffstat (limited to 'Modules/Compiler')
-rw-r--r-- | Modules/Compiler/XL-ASM.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Modules/Compiler/XL-ASM.cmake b/Modules/Compiler/XL-ASM.cmake new file mode 100644 index 0000000..d9d6cac --- /dev/null +++ b/Modules/Compiler/XL-ASM.cmake @@ -0,0 +1,15 @@ +SET(CMAKE_ASM_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_ASM_FLAGS_INIT "-qthreaded -qalias=noansi -qhalt=e -qsourcetype=assembler") + +SET(CMAKE_ASM_FLAGS_DEBUG_INIT "-g") +SET(CMAKE_ASM_FLAGS_RELEASE_INIT "-O -DNDEBUG") +SET(CMAKE_ASM_FLAGS_MINSIZEREL_INIT "-O -DNDEBUG") +SET(CMAKE_ASM_FLAGS_RELWITHDEBINFO_INIT "-g") + +SET(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s ) + +SET(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> <DEFINES> <FLAGS> -o <OBJECT> -c <SOURCE>") |