Skip to content

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 the feature introduced by !8861 (merged): Add options to specify the linker tool.

Fixes: #17596 (closed), #18209 (closed), #25344 (closed)

Edited by Marc Chevrier

Merge request reports