summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/ARMClang-DetermineCompiler.cmake
blob: eb0de5306aa7030f1ecdf532ff0298dfb0251336 (plain)
1
2
3
4
5
6
7
8
9
10
# ARMClang Toolchain
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)")

string(APPEND _compiler_id_version_compute "
# define @PREFIX@COMPILER_VERSION_INTERNAL @MACRO_DEC@(__ARMCOMPILER_VERSION)")