diff options
author | Wojciech Migda <wojtek.golf@interia.pl> | 2010-12-28 17:15:47 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-12-28 17:22:38 (GMT) |
commit | f1392dc90ba444259614f417cc0a9320c6d1df2c (patch) | |
tree | 208d2bcd7ba84bdae3de27b608a13c764e80f148 /Modules/CMakeCXXCompilerId.cpp.in | |
parent | 428e0e0ab95c7bd8cb4cddd637b36d338cad0c10 (diff) | |
download | CMake-f1392dc90ba444259614f417cc0a9320c6d1df2c.zip CMake-f1392dc90ba444259614f417cc0a9320c6d1df2c.tar.gz CMake-f1392dc90ba444259614f417cc0a9320c6d1df2c.tar.bz2 |
Recognize the Texas Instruments DSP compiler (#11645)
The TI DSP compiler predefines "__TI_COMPILER_VERSION__". Use this to
identify the C and C++ compilers. For assembler language the C compiler
executable is used:
$ cl6x -h
TMS320C6x C/C++ Compiler v6.1.11
Tools Copyright (c) 1996-2009 Texas Instruments Incorporated
Use this command-line option and output to recognize the assembler.
Diffstat (limited to 'Modules/CMakeCXXCompilerId.cpp.in')
-rw-r--r-- | Modules/CMakeCXXCompilerId.cpp.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeCXXCompilerId.cpp.in b/Modules/CMakeCXXCompilerId.cpp.in index 91f116a..7ab4080 100644 --- a/Modules/CMakeCXXCompilerId.cpp.in +++ b/Modules/CMakeCXXCompilerId.cpp.in @@ -47,6 +47,9 @@ #elif defined(_CRAYC) # define COMPILER_ID "Cray" +#elif defined(__TI_COMPILER_VERSION__) +# define COMPILER_ID "TI_DSP" + #elif defined(__GNUC__) # define COMPILER_ID "GNU" |