diff options
author | Fangrui Song <i@maskray.me> | 2024-04-04 10:28:36 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-04 10:28:36 -0700 |
commit | b9ec4ab6ac4f3ae8603da8bfbf10bc0ec104e0b7 (patch) | |
tree | d25206b24d17ae4459d5ebaf4e79e68a8b678e87 /llvm | |
parent | f2d22b5944b3c3f77dd236d89dd419d231243a56 (diff) | |
download | llvm-b9ec4ab6ac4f3ae8603da8bfbf10bc0ec104e0b7.zip llvm-b9ec4ab6ac4f3ae8603da8bfbf10bc0ec104e0b7.tar.gz llvm-b9ec4ab6ac4f3ae8603da8bfbf10bc0ec104e0b7.tar.bz2 |
[CMake] Install LLVMgold.so for LLVM_INSTALL_TOOLCHAIN_ONLY=on (#87567)
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 #84271
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/tools/gold/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/gold/CMakeLists.txt b/llvm/tools/gold/CMakeLists.txt index 58b3238..5c78529 100644 --- a/llvm/tools/gold/CMakeLists.txt +++ b/llvm/tools/gold/CMakeLists.txt @@ -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 ) |