From 98fea8205e4a5251871edafba427fd7d100e5db9 Mon Sep 17 00:00:00 2001 From: Josef Angstenberger Date: Sat, 11 Jul 2020 18:56:06 +0200 Subject: Compiler/TI: Avoid response file usage for linker The object and library files have to be listed after the `--run-linker` flag. But after this flag the `--cmd_file` flag for response files cannot be used any more. Putting the whole command line into a response file would work, but this is not supported by CMake (yet). --- Modules/Compiler/TI.cmake | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Modules/Compiler/TI.cmake b/Modules/Compiler/TI.cmake index c985b96..9f2e813 100644 --- a/Modules/Compiler/TI.cmake +++ b/Modules/Compiler/TI.cmake @@ -15,7 +15,6 @@ macro(__compiler_ti lang) endif() set(CMAKE_${lang}_RESPONSE_FILE_FLAG "--cmd_file=") - set(CMAKE_${lang}_RESPONSE_FILE_LINK_FLAG " ") set(CMAKE_INCLUDE_FLAG_${lang} "--include_path=") set(CMAKE_DEPFILE_FLAGS_${lang} "--preproc_with_compile --preproc_dependency=") @@ -29,6 +28,11 @@ macro(__compiler_ti lang) set(CMAKE_${lang}_ARCHIVE_APPEND " qa ") set(CMAKE_${lang}_ARCHIVE_FINISH "") + # After the --run_linker flag a response file is not possible + set(CMAKE_${lang}_RESPONSE_FILE_LINK_FLAG "") + set(CMAKE_${lang}_USE_RESPONSE_FILE_FOR_LIBRARIES 0) + set(CMAKE_${lang}_USE_RESPONSE_FILE_FOR_OBJECTS 0) + set(CMAKE_${lang}_LINK_EXECUTABLE " --run_linker --output_file= --map_file=.map ") endmacro() -- cgit v0.12