summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugues Kamba <hugues.kamba@arm.com>2020-09-01 17:03:49 (GMT)
committerHugues Kamba <hugues.kamba@arm.com>2020-09-01 17:03:49 (GMT)
commitfa7ba5fbf5c17323e5b20ceeda13b45619136790 (patch)
treea7cd4f3d85f4fa7a728c4b1c9d6f82c598af7936
parent8f73ff0c3707e5b3f27f54f2b94e03ccb193d698 (diff)
downloadCMake-fa7ba5fbf5c17323e5b20ceeda13b45619136790.zip
CMake-fa7ba5fbf5c17323e5b20ceeda13b45619136790.tar.gz
CMake-fa7ba5fbf5c17323e5b20ceeda13b45619136790.tar.bz2
ARMClang: Pass defines to assembler
This is useful when the assembly file(s) is passed to the pre-processor.
-rw-r--r--Modules/Compiler/ARMClang-ASM.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/ARMClang-ASM.cmake b/Modules/Compiler/ARMClang-ASM.cmake
index ceff3e8..6a299be 100644
--- a/Modules/Compiler/ARMClang-ASM.cmake
+++ b/Modules/Compiler/ARMClang-ASM.cmake
@@ -3,7 +3,7 @@ include(Compiler/ARMClang)
set(CMAKE_ASM_OUTPUT_EXTENSION ".o")
set(CMAKE_ASM_OUTPUT_EXTENSION_REPLACE 1)
-set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> <INCLUDES> <FLAGS> -c -o <OBJECT> <SOURCE>")
+set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -c -o <OBJECT> <SOURCE>")
set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS S;s;asm;msa)
__compiler_armclang(ASM)