summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/IAR-C.cmake
diff options
context:
space:
mode:
authorNico Mueller <nicomueller1991@googlemail.com>2019-09-16 08:45:03 (GMT)
committerBrad King <brad.king@kitware.com>2019-09-16 15:07:04 (GMT)
commitbd5006e8134a3ea5d949f9eedf139126af357820 (patch)
tree4e2f069c2df2f4c7c9d15fb4e4e05ac39312c2c7 /Modules/Compiler/IAR-C.cmake
parentbfa2eaa617de778ecfb2a0678c9898605822260d (diff)
downloadCMake-bd5006e8134a3ea5d949f9eedf139126af357820.zip
CMake-bd5006e8134a3ea5d949f9eedf139126af357820.tar.gz
CMake-bd5006e8134a3ea5d949f9eedf139126af357820.tar.bz2
IAR: Add v850 support
Add compiler identification for V850. Issue: #17264
Diffstat (limited to 'Modules/Compiler/IAR-C.cmake')
-rw-r--r--Modules/Compiler/IAR-C.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/Modules/Compiler/IAR-C.cmake b/Modules/Compiler/IAR-C.cmake
index e03ce3f..9ad1ba0 100644
--- a/Modules/Compiler/IAR-C.cmake
+++ b/Modules/Compiler/IAR-C.cmake
@@ -60,6 +60,11 @@ elseif("${CMAKE_C_COMPILER_ARCHITECTURE_ID}" STREQUAL "MSP430")
__compiler_check_default_language_standard(C 1.10 90 5.10 99)
set(CMAKE_C_OUTPUT_EXTENSION ".r43")
+elseif("${CMAKE_C_COMPILER_ARCHITECTURE_ID}" STREQUAL "V850")
+ __compiler_iar_xlink(C)
+ __compiler_check_default_language_standard(C 1.10 90 4.10 99)
+ set(CMAKE_C_OUTPUT_EXTENSION ".r85")
+
else()
message(FATAL_ERROR "CMAKE_C_COMPILER_ARCHITECTURE_ID not detected. This should be automatic.")
endif()