Files
CMake/Modules/Compiler/Renesas-DetermineCompiler.cmake
Hirofumi Nakamura 514135f563 Renesas: Add support for Renesas compilers
- CC-RX for RX architecture
- CC-RL for RL78 architecture
- CC-RH for RH850 architecture

Closes: #26880
2025-05-28 09:22:38 -04:00

8 lines
384 B
CMake

set(_compiler_id_pp_test "defined(__RENESAS__)")
set(_compiler_id_version_compute "
/* __RENESAS_VERSION__ = 0xVVRRPP00 */
# define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_HEX@(__RENESAS_VERSION__ >> 24 & 0xFF)
# define @PREFIX@COMPILER_VERSION_MINOR @MACRO_HEX@(__RENESAS_VERSION__ >> 16 & 0xFF)
# define @PREFIX@COMPILER_VERSION_PATCH @MACRO_HEX@(__RENESAS_VERSION__ >> 8 & 0xFF)")