diff options
author | Brad King <brad.king@kitware.com> | 2019-09-24 14:29:13 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2019-09-24 14:30:39 (GMT) |
commit | 28bd7e41b8792365c8730bdbffed825d70e50471 (patch) | |
tree | 859eb8449946d5cbdabe849631b4b36933016100 /Modules | |
parent | 004876b2144db09bb8d328985ca208ccf6ef30c4 (diff) | |
parent | 158f3795b812d6ae2f9a67550b53b071c285e623 (diff) | |
download | CMake-28bd7e41b8792365c8730bdbffed825d70e50471.zip CMake-28bd7e41b8792365c8730bdbffed825d70e50471.tar.gz CMake-28bd7e41b8792365c8730bdbffed825d70e50471.tar.bz2 |
Merge topic 'iar-v850-asm'
158f3795b8 IAR: Add v850 assembler support
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !3856
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/Compiler/IAR-ASM.cmake | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Compiler/IAR-ASM.cmake b/Modules/Compiler/IAR-ASM.cmake index 437678e..413d9e2 100644 --- a/Modules/Compiler/IAR-ASM.cmake +++ b/Modules/Compiler/IAR-ASM.cmake @@ -37,6 +37,11 @@ elseif("${CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID}" STREQUAL "MSP430") __compiler_iar_xlink(ASM) set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s43;asm;msa) +elseif("${CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID}" STREQUAL "V850") + set(CMAKE_ASM_COMPILE_OBJECT "<CMAKE_ASM_COMPILER> -S <SOURCE> <DEFINES> <INCLUDES> <FLAGS> -o <OBJECT>") + __compiler_iar_xlink(ASM) + set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS r85;asm;msa) + else() message(FATAL_ERROR "CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID not detected. This should be automatic.") endif() |