Skip to content

Commit 763b44e

Browse files
committed
Compiler/TI: Avoid usage of ranlib
If a ranlib executable has been found it is used for finishing an archive. In case of the TI compiler the archive file gets corrupted. Fixes: #14876
1 parent ef528f1 commit 763b44e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/Compiler/TI.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ macro(__compiler_ti lang)
2727

2828
set(CMAKE_${lang}_ARCHIVE_CREATE "<CMAKE_AR> qr <TARGET> <OBJECTS>")
2929
set(CMAKE_${lang}_ARCHIVE_APPEND "<CMAKE_AR> qa <TARGET> <OBJECTS>")
30+
set(CMAKE_${lang}_ARCHIVE_FINISH "")
3031

3132
set(CMAKE_${lang}_LINK_EXECUTABLE "<CMAKE_${lang}_COMPILER> --run_linker --output_file=<TARGET> --map_file=<TARGET_NAME>.map <CMAKE_${lang}_LINK_FLAGS> <LINK_FLAGS> <OBJECTS> <LINK_LIBRARIES>")
3233
endmacro()

0 commit comments

Comments
 (0)