Skip to content

Commit 51ae8eb

Browse files
committedApr 3, 2024
[CMake] Install LLVMgold.so for LLVM_INSTALL_TOOLCHAIN_ONLY=on
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
1 parent 4078763 commit 51ae8eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎llvm/tools/gold/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if( LLVM_ENABLE_PIC AND LLVM_BINUTILS_INCDIR )
1212
TargetParser
1313
)
1414

15-
add_llvm_library(LLVMgold MODULE
15+
add_llvm_library(LLVMgold MODULE INSTALL_WITH_TOOLCHAIN
1616
gold-plugin.cpp
1717
)
1818

0 commit comments

Comments
 (0)
Please sign in to comment.