[llvm] 4b3deae - Fix DebugInfo unittests shared library build (#202943)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 11 03:03:18 PDT 2026


Author: Sven van Haastregt
Date: 2026-06-11T12:03:12+02:00
New Revision: 4b3deaeb0d85fda9f6eee73f65f0be16b0e00698

URL: https://github.com/llvm/llvm-project/commit/4b3deaeb0d85fda9f6eee73f65f0be16b0e00698
DIFF: https://github.com/llvm/llvm-project/commit/4b3deaeb0d85fda9f6eee73f65f0be16b0e00698.diff

LOG: Fix DebugInfo unittests shared library build (#202943)

Fixes: `PublicsStreamTest.cpp.o: undefined reference to symbol
'_ZN4llvm6object18GenericBinaryErrorC1ERKNS_5TwineENS0_12object_errorE'`
under `BUILD_SHARED_LIBS=1`.

Added: 
    

Modified: 
    llvm/unittests/DebugInfo/PDB/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/llvm/unittests/DebugInfo/PDB/CMakeLists.txt b/llvm/unittests/DebugInfo/PDB/CMakeLists.txt
index 5cc6f2252fa81..fec1067e96f62 100644
--- a/llvm/unittests/DebugInfo/PDB/CMakeLists.txt
+++ b/llvm/unittests/DebugInfo/PDB/CMakeLists.txt
@@ -2,6 +2,7 @@ set(LLVM_LINK_COMPONENTS
   DebugInfoCodeView
   DebugInfoMSF
   DebugInfoPDB
+  Object
   )
 
 add_llvm_unittest_with_input_files(DebugInfoPDBTests


        


More information about the llvm-commits mailing list