
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
10 lines
299 B
CMake
10 lines
299 B
CMake
|
|
set(CMAKE_CUDA_VERBOSE_LINK_FLAG "-Wl,-v")
|
|
|
|
# linker selection
|
|
set(CMAKE_CUDA_USING_LINKER_SYSTEM "")
|
|
set(CMAKE_CUDA_USING_LINKER_LLD "-fuse-ld=lld")
|
|
set(CMAKE_CUDA_USING_LINKER_BFD "-fuse-ld=bfd")
|
|
set(CMAKE_CUDA_USING_LINKER_GOLD "-fuse-ld=gold")
|
|
set(CMAKE_CUDA_USING_LINKER_MOLD "-fuse-ld=mold")
|