mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-01 11:22:21 -06:00
LinkerId: Record detection steps to configure log
This commit is contained in:
@@ -35,6 +35,13 @@ function(cmake_determine_linker_id lang linker)
|
||||
OUTPUT_STRIP_TRAILING_WHITESPACE
|
||||
ERROR_STRIP_TRAILING_WHITESPACE)
|
||||
|
||||
string(JOIN "\" \"" flags_string ${flags})
|
||||
string(REGEX REPLACE "\n\n.*" "" linker_desc_head "${linker_desc}")
|
||||
message(CONFIGURE_LOG
|
||||
"Running the ${lang} compiler's linker: \"${linker}\" \"${flags_string}\"\n"
|
||||
"${linker_desc_head}\n"
|
||||
)
|
||||
|
||||
if(CMAKE_EFFECTIVE_SYSTEM_NAME STREQUAL "Apple" AND linker_desc MATCHES "@\\(#\\)PROGRAM:ld.+PROJECT:[a-z0-9]+-([0-9.]+).+")
|
||||
set(linker_id "AppleClang")
|
||||
set(linker_frontend "GNU")
|
||||
|
||||
Reference in New Issue
Block a user