summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/ARMCC-ASM.cmake
diff options
context:
space:
mode:
authorJoakim Andersson <Joakim.Andersson@nordicsemi.no>2015-10-26 13:51:09 (GMT)
committerBrad King <brad.king@kitware.com>2015-11-02 18:45:24 (GMT)
commit035a658f4fdc8028ff19568aa2ded8b3efa70909 (patch)
tree133d05ec37b5f5b2632111186d0bc0a52aabdc3b /Modules/Compiler/ARMCC-ASM.cmake
parent74ea66850c99578d7d1665e64579279a6ff89896 (diff)
downloadCMake-035a658f4fdc8028ff19568aa2ded8b3efa70909.zip
CMake-035a658f4fdc8028ff19568aa2ded8b3efa70909.tar.gz
CMake-035a658f4fdc8028ff19568aa2ded8b3efa70909.tar.bz2
Add support for the ARM Compiler (arm.com)
Create an `ARMCC` compiler id corresponding to compilers identified and versioned by the `__ARMCC_VERSION` predefined macro. See documentation for the compilers at http://infocenter.arm.com/help/topic/com.arm.doc.set.swdev/index.html
Diffstat (limited to 'Modules/Compiler/ARMCC-ASM.cmake')
-rw-r--r--Modules/Compiler/ARMCC-ASM.cmake7
1 files changed, 7 insertions, 0 deletions
diff --git a/Modules/Compiler/ARMCC-ASM.cmake b/Modules/Compiler/ARMCC-ASM.cmake
new file mode 100644
index 0000000..8e3cfc5
--- /dev/null
+++ b/Modules/Compiler/ARMCC-ASM.cmake
@@ -0,0 +1,7 @@
+include(Compiler/ARMCC)
+
+set(CMAKE_ASM_OUTPUT_EXTENSION ".o")
+set(CMAKE_ASM_OUTPUT_EXTENSION_REPLACE 1)
+
+set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> <FLAGS> -o <OBJECT> <SOURCE>")
+set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s;asm;msa)