mirror of
https://github.com/reactos/CMake.git
synced 2025-02-27 15:36:40 +00:00

-- Detect GHS compiler and version Detect ARCHITECTURE_ID for PPC / ARM / 86 targets Detect PLATFORM_ID for Integrity and Integrity178 platforms Using defines specified in the documents for the compilers: 201416 PPC / 201754 ARM / 201714 86 -- Fallback C/CXX compiler ID to GHS if not otherwise detected and using GHS MULTI generator Works around issue with some GHS compilers not setting __ghs__ compiler define -- Tweak Compiler ID checking so major id of 002017 is not replaced with 217 -- Prefer try_compile() library targets when testing for working GHS compilers -- Avoid CMake errors if reading past end of file for checking if file is PE executable
10 lines
404 B
CMake
10 lines
404 B
CMake
set(_compiler_id_pp_test "defined(__ghs__)")
|
|
|
|
set(_compiler_id_version_compute "
|
|
/* __GHS_VERSION_NUMBER = VVVVRP */
|
|
# ifdef __GHS_VERSION_NUMBER
|
|
# define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@(__GHS_VERSION_NUMBER / 100)
|
|
# define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@(__GHS_VERSION_NUMBER / 10 % 10)
|
|
# define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__GHS_VERSION_NUMBER % 10)
|
|
# endif")
|