GHS-DetermineCompiler.cmake testing for the INTEGRITY RTOS?
In GHS-DetermineCompiler.cmake, it seems that instead of checking for the GHS MULTI compiler, it is actually checking to see if the GHS INTEGRITY RTOS is available.
set(_compiler_id_pp_test "defined(__INTEGRITY)")
set(_compiler_id_version_compute "
# define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@(__INTEGRITY_MAJOR_VERSION)
# define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@(__INTEGRITY_MINOR_VERSION)
# define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__INTEGRITY_PATCH_VERSION)")
Since the GHS MULTI compiler can be used without the INTEGRITY RTOS, should this cmake file check for the ghs definition instead?
set(_compiler_id_pp_test "defined(__ghs__)")
set(_compiler_id_version_compute "# define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@(__GHS_VERSION_NUMBER)")