rename TI_DSP toolchain to TI, since it works also for the ARM compiler
Additionally, look for a special ar and strip Alex
This commit is contained in:
parent
12b25df882
commit
b3015862e5
|
@ -109,7 +109,7 @@
|
||||||
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
|
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
|
||||||
|
|
||||||
#elif defined(__TI_COMPILER_VERSION__)
|
#elif defined(__TI_COMPILER_VERSION__)
|
||||||
# define COMPILER_ID "TI_DSP"
|
# define COMPILER_ID "TI"
|
||||||
/* __TI_COMPILER_VERSION__ = VVVRRRPPP */
|
/* __TI_COMPILER_VERSION__ = VVVRRRPPP */
|
||||||
# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
|
# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
|
||||||
# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
|
# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
|
||||||
|
|
|
@ -114,7 +114,7 @@
|
||||||
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
|
# define COMPILER_VERSION_MINOR DEC(_RELEASE_MINOR)
|
||||||
|
|
||||||
#elif defined(__TI_COMPILER_VERSION__)
|
#elif defined(__TI_COMPILER_VERSION__)
|
||||||
# define COMPILER_ID "TI_DSP"
|
# define COMPILER_ID "TI"
|
||||||
/* __TI_COMPILER_VERSION__ = VVVRRRPPP */
|
/* __TI_COMPILER_VERSION__ = VVVRRRPPP */
|
||||||
# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
|
# define COMPILER_VERSION_MAJOR DEC(__TI_COMPILER_VERSION__/1000000)
|
||||||
# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
|
# define COMPILER_VERSION_MINOR DEC(__TI_COMPILER_VERSION__/1000 % 1000)
|
||||||
|
|
|
@ -99,9 +99,9 @@ if(NOT CMAKE_ASM${ASM_DIALECT}_COMPILER_ID)
|
||||||
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_MSVC "/?")
|
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_MSVC "/?")
|
||||||
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_MSVC "Microsoft")
|
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_MSVC "Microsoft")
|
||||||
|
|
||||||
list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS TI_DSP )
|
list(APPEND CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDORS TI )
|
||||||
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_TI_DSP "-h")
|
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_FLAGS_TI "-h")
|
||||||
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_TI_DSP "Texas Instruments")
|
set(CMAKE_ASM${ASM_DIALECT}_COMPILER_ID_VENDOR_REGEX_TI "Texas Instruments")
|
||||||
|
|
||||||
include(CMakeDetermineCompilerId)
|
include(CMakeDetermineCompilerId)
|
||||||
CMAKE_DETERMINE_COMPILER_ID_VENDOR(ASM${ASM_DIALECT})
|
CMAKE_DETERMINE_COMPILER_ID_VENDOR(ASM${ASM_DIALECT})
|
||||||
|
|
|
@ -41,6 +41,11 @@ if("${CMAKE_CXX_COMPILER_ID}" MATCHES "MSVC"
|
||||||
# in all other cases search for ar, ranlib, etc.
|
# in all other cases search for ar, ranlib, etc.
|
||||||
else()
|
else()
|
||||||
|
|
||||||
|
if("${CMAKE_CXX_COMPILER_ID}" STREQUAL "TI" OR "${CMAKE_C_COMPILER_ID}" STREQUAL "TI")
|
||||||
|
find_program(CMAKE_AR NAMES ar6x HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
||||||
|
find_program(CMAKE_STRIP NAMES strip6x HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
||||||
|
endif()
|
||||||
|
|
||||||
find_program(CMAKE_AR NAMES ${_CMAKE_TOOLCHAIN_PREFIX}ar HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
find_program(CMAKE_AR NAMES ${_CMAKE_TOOLCHAIN_PREFIX}ar HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
||||||
|
|
||||||
find_program(CMAKE_RANLIB NAMES ${_CMAKE_TOOLCHAIN_PREFIX}ranlib HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
find_program(CMAKE_RANLIB NAMES ${_CMAKE_TOOLCHAIN_PREFIX}ranlib HINTS ${_CMAKE_TOOLCHAIN_LOCATION})
|
||||||
|
|
|
@ -1499,7 +1499,7 @@ void cmDocumentVariables::DefineVariables(cmake* cm)
|
||||||
" PathScale = PathScale (pathscale.com)\n"
|
" PathScale = PathScale (pathscale.com)\n"
|
||||||
" SDCC = Small Device C Compiler (sdcc.sourceforge.net)\n"
|
" SDCC = Small Device C Compiler (sdcc.sourceforge.net)\n"
|
||||||
" SunPro = Oracle Solaris Studio (oracle.com)\n"
|
" SunPro = Oracle Solaris Studio (oracle.com)\n"
|
||||||
" TI_DSP = Texas Instruments (ti.com)\n"
|
" TI = Texas Instruments (ti.com)\n"
|
||||||
" TinyCC = Tiny C Compiler (tinycc.org)\n"
|
" TinyCC = Tiny C Compiler (tinycc.org)\n"
|
||||||
" Watcom = Open Watcom (openwatcom.org)\n"
|
" Watcom = Open Watcom (openwatcom.org)\n"
|
||||||
" XL, VisualAge, zOS = IBM XL (ibm.com)\n"
|
" XL, VisualAge, zOS = IBM XL (ibm.com)\n"
|
||||||
|
|
Loading…
Reference in New Issue