mirror of
https://github.com/Kitware/CMake.git
synced 2026-11-07 05:46:42 +00:00
mold linker: support discovery of --dependency-file support
This commit is contained in:
1 parent
00185a62cf
commit
3a7eed6a27
1 file changed
+1
-1
@@ -35,7 +35,7 @@ function(__linker_gnu lang)
|
||||
|
||||
if (NOT DEFINED CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED)
|
||||
## check if this feature is supported by the linker
|
||||
if (CMAKE_${lang}_COMPILER_LINKER AND CMAKE_${lang}_COMPILER_LINKER_ID MATCHES "GNU|LLD")
|
||||
if (CMAKE_${lang}_COMPILER_LINKER AND CMAKE_${lang}_COMPILER_LINKER_ID MATCHES "GNU|LLD|MOLD")
|
||||
execute_process(COMMAND "${CMAKE_${lang}_COMPILER_LINKER}" --help
|
||||
OUTPUT_VARIABLE _linker_capabilities
|
||||
ERROR_VARIABLE _linker_capabilities)
|
||||
|
||||
Reference in new issue
Block a user