GHS-DetermineCompiler.cmake 404 B

123456789
  1. set(_compiler_id_pp_test "defined(__ghs__)")
  2. set(_compiler_id_version_compute "
  3. /* __GHS_VERSION_NUMBER = VVVVRP */
  4. # ifdef __GHS_VERSION_NUMBER
  5. # define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@(__GHS_VERSION_NUMBER / 100)
  6. # define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@(__GHS_VERSION_NUMBER / 10 % 10)
  7. # define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__GHS_VERSION_NUMBER % 10)
  8. # endif")