Log implicit link line detection regex
This commit teaches the CMAKE_PARSE_IMPLICIT_LINK_INFO function to log the regex it uses to detect the linker invocation line. The regex is computed from the CMAKE_LINKER if it is found, so it might change. A strange value might match the wrong line and cause implicit link info extraction to fail. See issue #9666.
This commit is contained in:
parent
b9850a614e
commit
20e6ac320d
|
@ -27,6 +27,7 @@ function(CMAKE_PARSE_IMPLICIT_LINK_INFO text lib_var dir_var log_var)
|
|||
get_filename_component(linker ${CMAKE_LINKER} NAME)
|
||||
endif()
|
||||
set(linker_regex "^( *|.*/)(${linker}|ld|collect2)")
|
||||
set(log "${log} link line regex: [${linker_regex}]\n")
|
||||
string(REGEX REPLACE "\r?\n" ";" output_lines "${text}")
|
||||
foreach(line IN LISTS output_lines)
|
||||
set(cmd)
|
||||
|
|
Loading…
Reference in New Issue