summaryrefslogtreecommitdiffstats
path: root/Modules/Compiler/TI-C.cmake
diff options
context:
space:
mode:
authorOliver Blasius <blasius@futavis.de>2020-03-03 20:05:26 (GMT)
committerBrad King <brad.king@kitware.com>2020-03-09 16:02:20 (GMT)
commit5a0fc68312e9b5dd3f341660504d69220647437c (patch)
tree659a9a280e28901fda8c0467c50c0923e36663a6 /Modules/Compiler/TI-C.cmake
parent38ac070eada4abb9786968b2f88f7d0d8874770c (diff)
downloadCMake-5a0fc68312e9b5dd3f341660504d69220647437c.zip
CMake-5a0fc68312e9b5dd3f341660504d69220647437c.tar.gz
CMake-5a0fc68312e9b5dd3f341660504d69220647437c.tar.bz2
TI: Fix C toolchain command-lines
Fix `armar` arguments. Fix the linker `--map_file=` argument. Enable response files.
Diffstat (limited to 'Modules/Compiler/TI-C.cmake')
-rw-r--r--Modules/Compiler/TI-C.cmake8
1 files changed, 6 insertions, 2 deletions
diff --git a/Modules/Compiler/TI-C.cmake b/Modules/Compiler/TI-C.cmake
index 1c0f4bc..b060ee9 100644
--- a/Modules/Compiler/TI-C.cmake
+++ b/Modules/Compiler/TI-C.cmake
@@ -14,5 +14,9 @@ set(CMAKE_C_CREATE_ASSEMBLY_SOURCE "<CMAKE_C_COMPILER> --compile_only --skip_ass
set(CMAKE_C_CREATE_PREPROCESSED_SOURCE "<CMAKE_C_COMPILER> --preproc_only --c_file=<SOURCE> <DEFINES> <INCLUDES> <FLAGS> --output_file=<PREPROCESSED_SOURCE>")
set(CMAKE_C_COMPILE_OBJECT "<CMAKE_C_COMPILER> --compile_only --c_file=<SOURCE> <DEFINES> <INCLUDES> <FLAGS> --output_file=<OBJECT>")
-set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> -r <TARGET> <OBJECTS>")
-set(CMAKE_C_LINK_EXECUTABLE "<CMAKE_C_COMPILER> --run_linker --output_file=<TARGET> --map_file=<TARGET>.map <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> <LINK_LIBRARIES>")
+set(CMAKE_C_ARCHIVE_CREATE "<CMAKE_AR> qr <TARGET> <OBJECTS>")
+set(CMAKE_C_ARCHIVE_APPEND "<CMAKE_AR> qa <TARGET> <OBJECTS>")
+set(CMAKE_C_LINK_EXECUTABLE "<CMAKE_C_COMPILER> --run_linker --output_file=<TARGET> --map_file=<TARGET_NAME>.map <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> <LINK_LIBRARIES>")
+set(CMAKE_ASM_RESPONSE_FILE_FLAG "--cmd_file=")
+set(CMAKE_C_RESPONSE_FILE_FLAG "--cmd_file=")
+set(CMAKE_C_RESPONSE_FILE_LINK_FLAG " ")