CMake/Modules/Compiler/TIClang-DetermineCompiler.cmake
Alan Phipps 9ba0a54554 TIClang: Add support for TI Clang-based compilers, including tiarmclang
Add TIClang compiler ID and support in compiler modules.  Update
documentation.  Add rudimentary RunCMake test for TIClang to test
basic functionality.

Fixes: #24619
2024-02-09 15:54:40 -05:00

11 lines
460 B
CMake

# TI Clang-based Toolchains
set(_compiler_id_pp_test "defined(__clang__) && defined(__ti__)")
set(_compiler_id_version_compute "
# define @PREFIX@COMPILER_VERSION_MAJOR @MACRO_DEC@(__ti_major__)
# define @PREFIX@COMPILER_VERSION_MINOR @MACRO_DEC@(__ti_minor__)
# define @PREFIX@COMPILER_VERSION_PATCH @MACRO_DEC@(__ti_patchlevel__)")
string(APPEND _compiler_id_version_compute "
# define @PREFIX@COMPILER_VERSION_INTERNAL @MACRO_DEC@(__ti_version__)")