mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
mold linker: support discovery of --dependency-file support
This commit is contained in:
@@ -35,7 +35,7 @@ function(__linker_gnu lang)
|
|||||||
|
|
||||||
if (NOT DEFINED CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED)
|
if (NOT DEFINED CMAKE_${lang}_LINKER_DEPFILE_SUPPORTED)
|
||||||
## check if this feature is supported by the linker
|
## 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
|
execute_process(COMMAND "${CMAKE_${lang}_COMPILER_LINKER}" --help
|
||||||
OUTPUT_VARIABLE _linker_capabilities
|
OUTPUT_VARIABLE _linker_capabilities
|
||||||
ERROR_VARIABLE _linker_capabilities)
|
ERROR_VARIABLE _linker_capabilities)
|
||||||
|
|||||||
Reference in New Issue
Block a user