summaryrefslogtreecommitdiffstats
path: root/Modules/Platform/Windows-Clang.cmake
diff options
context:
space:
mode:
authorMarc Chevrier <marc.chevrier@gmail.com>2023-05-27 08:54:53 (GMT)
committerBrad King <brad.king@kitware.com>2023-10-24 12:34:50 (GMT)
commitc26c6ac488468e61c7b58226325043201c80c43e (patch)
treefdd4ec5a9a261147ebc2808c0ffd67d169fc3548 /Modules/Platform/Windows-Clang.cmake
parent8a79a20257eeac5b770e30df44441990cf01a853 (diff)
downloadCMake-c26c6ac488468e61c7b58226325043201c80c43e.zip
CMake-c26c6ac488468e61c7b58226325043201c80c43e.tar.gz
CMake-c26c6ac488468e61c7b58226325043201c80c43e.tar.bz2
Link Step: compute effective linker used by the compiler
Extract the effective linker during the computation of implicit artifacts delivered by the compiler to the linker. Define various variables describing the linker: * CMAKE_<LANG>_COMPILER_LINKER * CMAKE_<LANG>_COMPILER_LINKER_VERSION * CMAKE_<LANG>_COMPILER_LINKER_ID * CMAKE_<LANG>_COMPILER_LINKER_FRONTEND_VARIANT This is complementary to feature introduced by commit 96a953b1ed (Add options to specify linker tool, 2023-09-27). Fixes: #17596, #18209, #25344
Diffstat (limited to 'Modules/Platform/Windows-Clang.cmake')
-rw-r--r--Modules/Platform/Windows-Clang.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/Platform/Windows-Clang.cmake b/Modules/Platform/Windows-Clang.cmake
index a03fc9e..a58c2d6 100644
--- a/Modules/Platform/Windows-Clang.cmake
+++ b/Modules/Platform/Windows-Clang.cmake
@@ -45,6 +45,7 @@ macro(__windows_compiler_clang_gnu lang)
math(EXPR MSVC_VERSION "${CMAKE_MATCH_1}*100 + ${CMAKE_MATCH_2}")
endif()
+ set(CMAKE_${lang}_VERBOSE_LINK_FLAG "-v")
# No -fPIC on Windows
set(CMAKE_${lang}_COMPILE_OPTIONS_PIC "")
set(CMAKE_${lang}_COMPILE_OPTIONS_PIE "")