mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-06 05:40:54 -06:00
Merge topic 'ninja-rspfile-link-libraries'
4bb94c9Ninja: sysconf() is declared in unistd.hbb36759Ninja: enable response file support on Mac (length 262144)3a2c8e8Ninja: disable work around when linking with mingw3856e66Ninja: error on missing rspfile_content8c1e35cNinja: remove some unused default arguments7f647cfNinja: also write link libraries to rsp file
This commit is contained in:
@@ -115,7 +115,9 @@ macro(__windows_compiler_gnu lang)
|
||||
list(APPEND CMAKE_${lang}_ABI_FILES "Platform/Windows-GNU-${lang}-ABI")
|
||||
|
||||
# Support very long lists of object files.
|
||||
if("${CMAKE_${lang}_RESPONSE_FILE_LINK_FLAG}" STREQUAL "@")
|
||||
# TODO: check for which gcc versions this is still needed, not needed for gcc >= 4.4.
|
||||
# Ninja generator doesn't support this work around.
|
||||
if("${CMAKE_${lang}_RESPONSE_FILE_LINK_FLAG}" STREQUAL "@" AND NOT CMAKE_GENERATOR MATCHES "Ninja")
|
||||
foreach(rule CREATE_SHARED_MODULE CREATE_SHARED_LIBRARY LINK_EXECUTABLE)
|
||||
# The gcc/collect2/ld toolchain does not use response files
|
||||
# internally so we cannot pass long object lists. Instead pass
|
||||
|
||||
Reference in New Issue
Block a user