MantisBT - CMake
View Issue Details
0011645CMakeCMakepublic2010-12-28 10:562011-01-12 08:04
Wojciech Migda 
Brad King 
lowminoralways
closedfixed 
any linux or windows
CMake 2.8.3 
CMake 2.8.4CMake 2.8.4 
0011645: TI DSP compiler ID determination (w/ patch suggestion)
Currently TI DSP compilers are not handled wrt compiler id detection. This can be achieved for C/C++ by adding following lines into Modules/CMakeCCompilerId.c.in and Modules/CMakeCXXCompilerId.cpp.in files:

#elif defined(__TI_COMPILER_VERSION__)
# define COMPILER_ID "TI_DSP"

This will work since __TI_COMPILER_VERSION__ is predefined by TI DSP compilers (http://focus.ti.com/lit/ug/spru187o/spru187o.pdf [^])

For assembler language the same executable is used (cl6x), thus Modules/CMakeDetermineASMCompiler.cmake can be modified by adding lines:

LIST(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS TI_DSP )
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_TI_DSP "-h")
SET(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_TI_DSP "Texas Instruments")

following "GNU assember" recognition sequence.

Top lines of TI DSP 'cl6x -h' output are:
"""
TMS320C6x C/C++ Compiler v6.1.11
Tools Copyright (c) 1996-2009 Texas Instruments Incorporated
"""

With best regards,

Wojciech Migda
No tags attached.
patch 428e0e0a+0001-Recognize-the-Texas-Instruments-DSP-compiler-11645.patch (2,376) 2010-12-28 12:23
https://public.kitware.com/Bug/file/3591/428e0e0a%2B0001-Recognize-the-Texas-Instruments-DSP-compiler-11645.patch
Issue History
2010-12-28 10:56Wojciech MigdaNew Issue
2010-12-28 11:41Brad KingAssigned To => Brad King
2010-12-28 11:41Brad KingStatusnew => assigned
2010-12-28 12:23Brad KingFile Added: 428e0e0a+0001-Recognize-the-Texas-Instruments-DSP-compiler-11645.patch
2010-12-28 12:23Brad KingNote Added: 0024334
2010-12-28 13:47Wojciech MigdaNote Added: 0024335
2010-12-28 14:03Brad KingNote Added: 0024336
2010-12-28 14:03Brad KingStatusassigned => closed
2010-12-28 14:03Brad KingResolutionopen => fixed
2011-01-12 08:04David ColeFixed in Version => CMake 2.8.4
2011-01-12 08:04David ColeTarget Version => CMake 2.8.4

Notes
(0024334)
Brad King   
2010-12-28 12:23   
How does the patch in

  428e0e0a+0001-Recognize-the-Texas-Instruments-DSP-compiler-11645.patch

look?
(0024335)
Wojciech Migda   
2010-12-28 13:47   
That's exactly what I meant. Thank you.
(0024336)
Brad King   
2010-12-28 14:03   
Thanks. Applied:

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f1392dc9 [^]