[PATCH] D150871: libclc: fix linking against libLLVMSupport
Thomas Debesse via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 18 07:46:50 PDT 2023
illwieckz created this revision.
Herald added a subscriber: jvesely.
Herald added a project: All.
illwieckz requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Fixes:
Build libclc: [1/22] Linking CXX executable prepare_builtins
Build libclc: FAILED: prepare_builtins
Build libclc: : && /usr/bin/c++ -fno-lto -O3 -DNDEBUG -fno-lto -Wl,-rpath-link, -Wl,--gc-sections CMakeFiles/prepare_builtins.dir/utils/prepare-builtins.cpp.o -o prepare_builtins -Wl,-rpath,"\$ORIGIN/../lib" prefix/lib/libLLVMBitWriter.so.17git prefix/lib/libLLVMBitReader.so.17git prefix/lib/libLLVMCore.so.17git && :
Build libclc: /usr/bin/ld: CMakeFiles/prepare_builtins.dir/utils/prepare-builtins.cpp.o: undefined reference to symbol '_ZN4llvm2cl6Option11addArgumentEv'
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D150871
Files:
libclc/CMakeLists.txt
Index: libclc/CMakeLists.txt
===================================================================
--- libclc/CMakeLists.txt
+++ libclc/CMakeLists.txt
@@ -114,6 +114,7 @@
set(LLVM_LINK_COMPONENTS
BitReader
BitWriter
+ Support
Core
)
add_llvm_executable( prepare_builtins utils/prepare-builtins.cpp )
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D150871.523379.patch
Type: text/x-patch
Size: 311 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230518/90444c9f/attachment.bin>
More information about the llvm-commits
mailing list