summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler
diff options
context:
space:
mode:
authorSebastian Wendt <swendt@crispaudio.de>2023-10-12 04:46:47 (GMT)
committerBrad King <brad.king@kitware.com>2023-10-12 15:04:58 (GMT)
commit0e828b92f199640da49373ab51ce9f42efd2156f (patch)
treecb40462024ae17f71e811daa1ebb8f2e59eeb69e /Modules/Compiler
parentbf5185ead7ef0f411deeaa3f29176b533066d404 (diff)
downloadCMake-0e828b92f199640da49373ab51ce9f42efd2156f.zip
CMake-0e828b92f199640da49373ab51ce9f42efd2156f.tar.gz
CMake-0e828b92f199640da49373ab51ce9f42efd2156f.tar.bz2
ADSP: Add support for assembler
In commit e9eabb0dcd (ADSP: Configure compiler in compiler module, 2022-03-24, v3.24.0-rc1~331^2~1) we added compiler information modules for the ADSP C and C++ compilers. Add one for the assembler too. We already identify the ADSP assembler since commit f83330ed6c (ASM: ADSP assembler identification, 2018-01-30, v3.11.0-rc1~35^2).
Diffstat (limited to 'Modules/Compiler')
-rw-r--r--Modules/Compiler/ADSP-ASM.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/Modules/Compiler/ADSP-ASM.cmake b/Modules/Compiler/ADSP-ASM.cmake
new file mode 100644
index 0000000..9ef5142
--- /dev/null
+++ b/Modules/Compiler/ADSP-ASM.cmake
@@ -0,0 +1,6 @@
+include(Compiler/ADSP)
+__compiler_adsp(ASM)
+
+set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS asm)
+set(CMAKE_ASM_OUTPUT_EXTENSION ".o" )
+set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT> <SOURCE>")