diff options
author | Micael Borgefeldt <micael.borgefeldt@iar.com> | 2019-10-11 12:51:09 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2019-10-11 14:22:52 (GMT) |
commit | 5652e11ea1543a9d3038bf104607bf13feb5582a (patch) | |
tree | c870154eabc4bef527b13212bcd05e969dc9f02f /Modules/Compiler/IAR-ASM.cmake | |
parent | 6e51db9a40cda01907322da384a84bf5c4237231 (diff) | |
download | CMake-5652e11ea1543a9d3038bf104607bf13feb5582a.zip CMake-5652e11ea1543a9d3038bf104607bf13feb5582a.tar.gz CMake-5652e11ea1543a9d3038bf104607bf13feb5582a.tar.bz2 |
IAR: Add 8051 support
Issue: #17264
Diffstat (limited to 'Modules/Compiler/IAR-ASM.cmake')
-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 ace7f58..936d4ae 100644 --- a/Modules/Compiler/IAR-ASM.cmake +++ b/Modules/Compiler/IAR-ASM.cmake @@ -42,6 +42,11 @@ elseif("${CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID}" STREQUAL "V850") __compiler_iar_xlink(ASM) set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s85;asm;msa) +elseif("${CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID}" STREQUAL "8051") + 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 s51;asm;msa) + else() message(FATAL_ERROR "CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID not detected. This should be automatic.") endif() |