summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/IAR-C.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-10-12 14:26:42 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-10-12 14:27:06 (GMT)
commit3f10e564e04f1c619fcdc2c2fd4584961c46f9ec (patch)
tree60127332d8ebc8cacce436cbacab917cf61dd37b /Modules/Compiler/IAR-C.cmake
parent04ad7b8571f369e45feaba50941e20d082aa7b17 (diff)
parent5652e11ea1543a9d3038bf104607bf13feb5582a (diff)
downloadCMake-3f10e564e04f1c619fcdc2c2fd4584961c46f9ec.zip
CMake-3f10e564e04f1c619fcdc2c2fd4584961c46f9ec.tar.gz
CMake-3f10e564e04f1c619fcdc2c2fd4584961c46f9ec.tar.bz2
Merge topic 'iar-8051-support'
5652e11ea1 IAR: Add 8051 support 6e51db9a40 IAR: Fix v850 assembler support file extensions Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3906
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 9ad1ba0..e27fdfc 100644
--- a/Modules/Compiler/IAR-C.cmake
+++ b/Modules/Compiler/IAR-C.cmake
@@ -65,6 +65,11 @@ elseif("${CMAKE_C_COMPILER_ARCHITECTURE_ID}" STREQUAL "V850")
__compiler_check_default_language_standard(C 1.10 90 4.10 99)
set(CMAKE_C_OUTPUT_EXTENSION ".r85")
+elseif("${CMAKE_C_COMPILER_ARCHITECTURE_ID}" STREQUAL "8051")
+ __compiler_iar_xlink(C)
+ __compiler_check_default_language_standard(C 6.10 90 8.10 99)
+ set(CMAKE_C_OUTPUT_EXTENSION ".r51")
+
else()
message(FATAL_ERROR "CMAKE_C_COMPILER_ARCHITECTURE_ID not detected. This should be automatic.")
endif()