summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCCompilerId.c.in
diff options
context:
space:
mode:
authorWojciech Migda <wojtek.golf@interia.pl>2010-12-28 17:15:47 (GMT)
committerBrad King <brad.king@kitware.com>2010-12-28 17:22:38 (GMT)
commitf1392dc90ba444259614f417cc0a9320c6d1df2c (patch)
tree208d2bcd7ba84bdae3de27b608a13c764e80f148 /Modules/CMakeCCompilerId.c.in
parent428e0e0ab95c7bd8cb4cddd637b36d338cad0c10 (diff)
downloadCMake-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/CMakeCCompilerId.c.in')
-rw-r--r--Modules/CMakeCCompilerId.c.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/Modules/CMakeCCompilerId.c.in b/Modules/CMakeCCompilerId.c.in
index 2b80c88..ff48d62 100644
--- a/Modules/CMakeCCompilerId.c.in
+++ b/Modules/CMakeCCompilerId.c.in
@@ -45,6 +45,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"