summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/IAR-ASM.cmake
diff options
context:
space:
mode:
authorStefan Andersson <tfosm@hotmail.com>2019-07-03 12:52:39 (GMT)
committerBrad King <brad.king@kitware.com>2019-07-08 17:11:45 (GMT)
commitc242187875303219db49089e401d62a47f79207e (patch)
tree63a86ff4df6c1811446dd624108d019167b55465 /Modules/Compiler/IAR-ASM.cmake
parent753373579e3dd8cf19f0fc18f4d9bec43a2d82e8 (diff)
downloadCMake-c242187875303219db49089e401d62a47f79207e.zip
CMake-c242187875303219db49089e401d62a47f79207e.tar.gz
CMake-c242187875303219db49089e401d62a47f79207e.tar.bz2
IAR: Add support for the RISC-V compiler
Diffstat (limited to 'Modules/Compiler/IAR-ASM.cmake')
-rw-r--r--Modules/Compiler/IAR-ASM.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Compiler/IAR-ASM.cmake b/Modules/Compiler/IAR-ASM.cmake
index 71f2ac6..437678e 100644
--- a/Modules/Compiler/IAR-ASM.cmake
+++ b/Modules/Compiler/IAR-ASM.cmake
@@ -22,6 +22,11 @@ elseif("${CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID}" STREQUAL "RL78")
__compiler_iar_ilink(ASM)
set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s;asm;msa)
+elseif("${CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID}" STREQUAL "RISC-V")
+ set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> --silent <SOURCE> <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT>")
+ __compiler_iar_ilink(ASM)
+ set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s;asm;msa)
+
elseif("${CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID}" STREQUAL "AVR")
set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> -S <SOURCE> <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT>")
__compiler_iar_xlink(ASM)