mirror of
https://github.com/Kitware/CMake.git
synced 2025-10-16 22:37:30 +08:00
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).
This commit is contained in:
@@ -15,7 +15,6 @@ macro(__compiler_ti lang)
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_${lang}_RESPONSE_FILE_FLAG "--cmd_file=")
|
set(CMAKE_${lang}_RESPONSE_FILE_FLAG "--cmd_file=")
|
||||||
set(CMAKE_${lang}_RESPONSE_FILE_LINK_FLAG " ")
|
|
||||||
|
|
||||||
set(CMAKE_INCLUDE_FLAG_${lang} "--include_path=")
|
set(CMAKE_INCLUDE_FLAG_${lang} "--include_path=")
|
||||||
set(CMAKE_DEPFILE_FLAGS_${lang} "--preproc_with_compile --preproc_dependency=<DEPFILE>")
|
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_APPEND "<CMAKE_AR> qa <TARGET> <OBJECTS>")
|
||||||
set(CMAKE_${lang}_ARCHIVE_FINISH "")
|
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>")
|
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()
|
endmacro()
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user