Skip to content

Commit

Permalink
[CMake] Install LLVMgold.so for LLVM_INSTALL_TOOLCHAIN_ONLY=on
Browse files Browse the repository at this point in the history
LLVMgold.so can be used with GNU ar, gold, ld, and nm to process LLVM
bitcode files. Install it in LLVM_INSTALL_TOOLCHAIN_ONLY=on builds like
we install libLTO.so.

Suggested by @emelife

Fix llvm#84271
  • Loading branch information
MaskRay committed Apr 3, 2024
1 parent 4078763 commit 51ae8eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/tools/gold/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ if( LLVM_ENABLE_PIC AND LLVM_BINUTILS_INCDIR )
TargetParser
)

add_llvm_library(LLVMgold MODULE
add_llvm_library(LLVMgold MODULE INSTALL_WITH_TOOLCHAIN
gold-plugin.cpp
)

Expand Down

0 comments on commit 51ae8eb

Please sign in to comment.