ARMCC-DetermineCompiler.cmake 731 B

12345678910111213141516
  1. # ARMCC Toolchain
  2. set(_compiler_id_pp_test "defined(__ARMCC_VERSION) && !defined(__clang__)")
  3. set(_compiler_id_version_compute "
  4. #if __ARMCC_VERSION >= 1000000
  5. /* __ARMCC_VERSION = VRRPPPP */
  6. # define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@(__ARMCC_VERSION/1000000)
  7. # define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@(__ARMCC_VERSION/10000 % 100)
  8. # define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__ARMCC_VERSION % 10000)
  9. #else
  10. /* __ARMCC_VERSION = VRPPPP */
  11. # define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@(__ARMCC_VERSION/100000)
  12. # define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@(__ARMCC_VERSION/10000 % 10)
  13. # define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__ARMCC_VERSION % 10000)
  14. #endif
  15. ")