From 4110d9dffb076c0d6917b823492dc4dd655514a0 Mon Sep 17 00:00:00 2001 From: Alekseev Alexey Date: Wed, 8 Apr 2020 11:47:51 +0300 Subject: Compiler/TI: Fix linker command line for C++ Just like C, libraries must be in the last part of the linker. Commit 89317915d9 (Compiler/TI: Pass libraries as last part to linker, 2016-06-02) --- Modules/Compiler/TI-CXX.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Modules/Compiler/TI-CXX.cmake b/Modules/Compiler/TI-CXX.cmake index 4c6af06..08a830a 100644 --- a/Modules/Compiler/TI-CXX.cmake +++ b/Modules/Compiler/TI-CXX.cmake @@ -9,4 +9,4 @@ set(CMAKE_CXX_CREATE_PREPROCESSED_SOURCE " --preproc_only -- set(CMAKE_CXX_COMPILE_OBJECT " --compile_only --cpp_file= --output_file=") set(CMAKE_CXX_ARCHIVE_CREATE " -r ") -set(CMAKE_CXX_LINK_EXECUTABLE " --run_linker --output_file= --map_file=.map ") +set(CMAKE_CXX_LINK_EXECUTABLE " --run_linker --output_file= --map_file=.map ") -- cgit v0.12 From 65c1320719923d72fcb24c3ad2095ef77b929470 Mon Sep 17 00:00:00 2001 From: Alekseev Alexey Date: Wed, 8 Apr 2020 12:38:49 +0300 Subject: Compiler/TI: Fix C++ toolchain command-lines Applied commit 5a0fc68312 (TI: Fix C toolchain command-lines, 2020-03-03) for C++: Fix `armar` arguments. Fix the linker `--map_file=` argument. Enable response files. --- Modules/Compiler/TI-CXX.cmake | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Modules/Compiler/TI-CXX.cmake b/Modules/Compiler/TI-CXX.cmake index 08a830a..7836543 100644 --- a/Modules/Compiler/TI-CXX.cmake +++ b/Modules/Compiler/TI-CXX.cmake @@ -8,5 +8,8 @@ set(CMAKE_CXX_CREATE_ASSEMBLY_SOURCE " --compile_only --skip set(CMAKE_CXX_CREATE_PREPROCESSED_SOURCE " --preproc_only --cpp_file= --output_file=") set(CMAKE_CXX_COMPILE_OBJECT " --compile_only --cpp_file= --output_file=") -set(CMAKE_CXX_ARCHIVE_CREATE " -r ") -set(CMAKE_CXX_LINK_EXECUTABLE " --run_linker --output_file= --map_file=.map ") +set(CMAKE_CXX_ARCHIVE_CREATE " qr ") +set(CMAKE_CXX_ARCHIVE_APPEND " qa ") +set(CMAKE_CXX_LINK_EXECUTABLE " --run_linker --output_file= --map_file=.map ") +set(CMAKE_CXX_RESPONSE_FILE_FLAG "--cmd_file=") +set(CMAKE_CXX_RESPONSE_FILE_LINK_FLAG " ") -- cgit v0.12