summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Brondani <daniel.brondani@arm.com>2023-07-18 11:55:51 (GMT)
committerBrad King <brad.king@kitware.com>2023-07-18 17:29:01 (GMT)
commit65fac2fa35530e9328986966d7c5b286188b9e79 (patch)
tree9367f6733fb55abc625a98044f665cda12c775eb
parent8c5905ca1cafdcc43e6996df32e145454629324b (diff)
downloadCMake-65fac2fa35530e9328986966d7c5b286188b9e79.zip
CMake-65fac2fa35530e9328986966d7c5b286188b9e79.tar.gz
CMake-65fac2fa35530e9328986966d7c5b286188b9e79.tar.bz2
ARMClang: Fix computation of compiler semantic version patch level
According to ARMClang documentation 6.20, the patch version number should not include the last two digits of `__ARMCOMPILER_VERSION`, which are reserved for internal use by ARM.
-rw-r--r--Modules/Compiler/ARMClang-DetermineCompiler.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/Compiler/ARMClang-DetermineCompiler.cmake b/Modules/Compiler/ARMClang-DetermineCompiler.cmake
index eb0de53..7d1478c 100644
--- a/Modules/Compiler/ARMClang-DetermineCompiler.cmake
+++ b/Modules/Compiler/ARMClang-DetermineCompiler.cmake
@@ -4,7 +4,7 @@ set(_compiler_id_pp_test "defined(__clang__) && defined(__ARMCOMPILER_VERSION)")
set(_compiler_id_version_compute "
# define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@(__ARMCOMPILER_VERSION/1000000)
# define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@(__ARMCOMPILER_VERSION/10000 % 100)
- # define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__ARMCOMPILER_VERSION % 10000)")
+ # define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__ARMCOMPILER_VERSION/100 % 100)")
string(APPEND _compiler_id_version_compute "
# define @PREFIX@COMPILER_VERSION_INTERNAL @MACRO_DEC@(__ARMCOMPILER_VERSION)")