diff options
author | Felipe Torrezan <felipe.torrezan@iar.com> | 2021-02-10 13:20:25 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2021-02-12 11:51:05 (GMT) |
commit | 8ee933900e53646a9d4753211d6828b1dfb21709 (patch) | |
tree | 1979ed57efcaa41891d51822ca070a9f8f960e5e /Modules/Compiler/IAR-ASM.cmake | |
parent | faec25c19899faef39d082b5b0b2e1120c298459 (diff) | |
download | CMake-8ee933900e53646a9d4753211d6828b1dfb21709.zip CMake-8ee933900e53646a9d4753211d6828b1dfb21709.tar.gz CMake-8ee933900e53646a9d4753211d6828b1dfb21709.tar.bz2 |
IAR: add support for the STM8 compiler
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 936d4ae..e3ca16e 100644 --- a/Modules/Compiler/IAR-ASM.cmake +++ b/Modules/Compiler/IAR-ASM.cmake @@ -47,6 +47,11 @@ elseif("${CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID}" STREQUAL "8051") __compiler_iar_xlink(ASM) set(CMAKE_ASM_SOURCE_FILE_EXTENSIONS s51;asm;msa) +elseif("${CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID}" STREQUAL "STM8") + 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) + else() message(FATAL_ERROR "CMAKE_ASM${ASM_DIALECT}_COMPILER_ARCHITECTURE_ID not detected. This should be automatic.") endif() |