summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/IAR-DetermineCompiler.cmake
diff options
context:
space:
mode:
authorStefan Andersson <tfosm@hotmail.com>2019-07-03 12:52:39 (GMT)
committerBrad King <brad.king@kitware.com>2019-07-08 17:11:45 (GMT)
commitc242187875303219db49089e401d62a47f79207e (patch)
tree63a86ff4df6c1811446dd624108d019167b55465 /Modules/Compiler/IAR-DetermineCompiler.cmake
parent753373579e3dd8cf19f0fc18f4d9bec43a2d82e8 (diff)
downloadCMake-c242187875303219db49089e401d62a47f79207e.zip
CMake-c242187875303219db49089e401d62a47f79207e.tar.gz
CMake-c242187875303219db49089e401d62a47f79207e.tar.bz2
IAR: Add support for the RISC-V compiler
Diffstat (limited to 'Modules/Compiler/IAR-DetermineCompiler.cmake')
-rw-r--r--Modules/Compiler/IAR-DetermineCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/IAR-DetermineCompiler.cmake b/Modules/Compiler/IAR-DetermineCompiler.cmake
index 6b09c40..57ca1c9 100644
--- a/Modules/Compiler/IAR-DetermineCompiler.cmake
+++ b/Modules/Compiler/IAR-DetermineCompiler.cmake
@@ -31,7 +31,7 @@ set(_compiler_id_version_compute "
# define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@(((__VER__) / 1000) % 1000)
# define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@((__VER__) % 1000)
# define @PREFIX@COMPILER_VERSION_INTERNAL @MACRO_DEC@(__IAR_SYSTEMS_ICC__)
-# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__))
+# elif defined(__VER__) && (defined(__ICCAVR__) || defined(__ICCRX__) || defined(__ICCRH850__) || defined(__ICCRL78__) || defined(__ICC430__) || defined(__ICCRISCV__))
# define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@((__VER__) / 100)
# define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@((__VER__) - (((__VER__) / 100)*100))
# define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__SUBVERSION__)