[llvm] 37123e9 - Fix link error after cc7308a156 with shared libraries

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 23 06:54:11 PDT 2024


Author: Krzysztof Parzyszek
Date: 2024-07-23T08:53:44-05:00
New Revision: 37123e9915407d266074aaf81c5de9399b672e53

URL: https://github.com/llvm/llvm-project/commit/37123e9915407d266074aaf81c5de9399b672e53
DIFF: https://github.com/llvm/llvm-project/commit/37123e9915407d266074aaf81c5de9399b672e53.diff

LOG: Fix link error after cc7308a156 with shared libraries

/usr/bin/ld: CMakeFiles/ProfileDataTests.dir/PGOCtxProfReaderWriterTest.cpp.o: undefined reference to symbol '_ZN4llvm15BitcodeAnalyzer7analyzeESt8optionalINS_13BCDumpOptionsEES1_INS_9StringRefEE'
/usr/bin/ld: /work/kparzysz/git/llvm.org/b/x86/lib/libLLVMBitReader.so.20.0git: error adding symbols: DSO missing from command line

Added: 
    

Modified: 
    llvm/unittests/ProfileData/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/ProfileData/CMakeLists.txt b/llvm/unittests/ProfileData/CMakeLists.txt
index c92642ded8282..0a7f7da085950 100644
--- a/llvm/unittests/ProfileData/CMakeLists.txt
+++ b/llvm/unittests/ProfileData/CMakeLists.txt
@@ -1,4 +1,5 @@
 set(LLVM_LINK_COMPONENTS
+  BitReader
   Core
   Coverage
   ProfileData


        


More information about the llvm-commits mailing list