
De-duplicate IBMClang compiler information by detecting the base clang version and following the same logic as we do for any other clang of that version. This helps maintain support for new IBMClang features inherited from new base Clang versions. We already use this approach for other Clang variants, like CrayClang and FujitsuClang.
10 lines
479 B
CMake
10 lines
479 B
CMake
set(_compiler_id_pp_test "defined(__open_xl__) && defined(__clang__)")
|
|
|
|
set(_compiler_id_version_compute "
|
|
# define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@(__open_xl_version__)
|
|
# define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@(__open_xl_release__)
|
|
# define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__open_xl_modification__)
|
|
# define @PREFIX@COMPILER_VERSION_TWEAK @MACRO_DEC@(__open_xl_ptf_fix_level__)
|
|
# define @PREFIX@COMPILER_VERSION_INTERNAL_STR __clang_version__
|
|
")
|