diff options
author | Marc Chevrier <marc.chevrier@gmail.com> | 2023-05-27 08:54:53 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2023-10-24 12:34:50 (GMT) |
commit | c26c6ac488468e61c7b58226325043201c80c43e (patch) | |
tree | fdd4ec5a9a261147ebc2808c0ffd67d169fc3548 /Modules/Platform/Windows-Clang.cmake | |
parent | 8a79a20257eeac5b770e30df44441990cf01a853 (diff) | |
download | CMake-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.cmake | 1 |
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 "") |