diff options
author | Josef Angstenberger <code@jtxa.de> | 2020-07-12 01:04:50 (GMT) |
---|---|---|
committer | Josef Angstenberger <code@jtxa.de> | 2020-07-14 00:23:56 (GMT) |
commit | 195aa488e37769ea9f66817e00119e19ca96bff0 (patch) | |
tree | cacf65663ac6c398dc079debb221b7a1230e3ec3 /Modules/CMakePlatformId.h.in | |
parent | c361600fc4b654ececa2f5ebdda64bb39b59ef95 (diff) | |
download | CMake-195aa488e37769ea9f66817e00119e19ca96bff0.zip CMake-195aa488e37769ea9f66817e00119e19ca96bff0.tar.gz CMake-195aa488e37769ea9f66817e00119e19ca96bff0.tar.bz2 |
Compiler/TI: Detect architecture
Diffstat (limited to 'Modules/CMakePlatformId.h.in')
-rw-r--r-- | Modules/CMakePlatformId.h.in | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/Modules/CMakePlatformId.h.in b/Modules/CMakePlatformId.h.in index 40668a3..0b81c88 100644 --- a/Modules/CMakePlatformId.h.in +++ b/Modules/CMakePlatformId.h.in @@ -206,6 +206,24 @@ # else /* unknown architecture */ # define ARCHITECTURE_ID "" # endif + +#elif defined(__TI_COMPILER_VERSION__) +# if defined(__TI_ARM__) +# define ARCHITECTURE_ID "ARM" + +# elif defined(__MSP430__) +# define ARCHITECTURE_ID "MSP430" + +# elif defined(__TMS320C28XX__) +# define ARCHITECTURE_ID "TMS320C28x" + +# elif defined(__TMS320C6X__) || defined(_TMS320C6X) +# define ARCHITECTURE_ID "TMS320C6x" + +# else /* unknown architecture */ +# define ARCHITECTURE_ID "" +# endif + #else # define ARCHITECTURE_ID #endif @@ -283,4 +301,3 @@ char const info_simulate_version[] = { array rather than assigning a pointer to a static array. */ char const* info_platform = "INFO" ":" "platform[" PLATFORM_ID "]"; char const* info_arch = "INFO" ":" "arch[" ARCHITECTURE_ID "]"; - |