diff options
author | Josef Angstenberger <code@jtxa.de> | 2020-07-11 16:56:06 (GMT) |
---|---|---|
committer | Josef Angstenberger <code@jtxa.de> | 2020-07-14 00:41:51 (GMT) |
commit | 98fea8205e4a5251871edafba427fd7d100e5db9 (patch) | |
tree | 20b136df54c69ed1fdd48d0f66fa129927fb7319 | |
parent | 5dec322f3385ae7642f898a1e9d39affb79ca5e6 (diff) | |
download | CMake-98fea8205e4a5251871edafba427fd7d100e5db9.zip CMake-98fea8205e4a5251871edafba427fd7d100e5db9.tar.gz CMake-98fea8205e4a5251871edafba427fd7d100e5db9.tar.bz2 |
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).
-rw-r--r-- | Modules/Compiler/TI.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
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=<DEPFILE>") @@ -29,6 +28,11 @@ macro(__compiler_ti lang) set(CMAKE_${lang}_ARCHIVE_APPEND "<CMAKE_AR> qa <TARGET> <OBJECTS>") 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 "<CMAKE_${lang}_COMPILER> <FLAGS> --run_linker --output_file=<TARGET> --map_file=<TARGET_NAME>.map <CMAKE_${lang}_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> <LINK_LIBRARIES>") endmacro() |