[llvm] Fix DebugInfo unittests shared library build (PR #202943)
Sven van Haastregt via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 10 04:49:36 PDT 2026
https://github.com/svenvh created https://github.com/llvm/llvm-project/pull/202943
Fixes: `PublicsStreamTest.cpp.o: undefined reference to symbol '_ZN4llvm6object18GenericBinaryErrorC1ERKNS_5TwineENS0_12object_errorE'` under `BUILD_SHARED_LIBS=1`.
>From 0f8517b81ff8ffe04e22728c3defd2ba07f5596a Mon Sep 17 00:00:00 2001
From: Sven van Haastregt <sven.vanhaastregt at arm.com>
Date: Wed, 10 Jun 2026 12:39:09 +0100
Subject: [PATCH] Fix DebugInfo unittests shared library build
Fixes: `PublicsStreamTest.cpp.o: undefined reference to symbol
'_ZN4llvm6object18GenericBinaryErrorC1ERKNS_5TwineENS0_12object_errorE'`
under `BUILD_SHARED_LIBS=1`.
---
llvm/unittests/DebugInfo/PDB/CMakeLists.txt | 1 +
1 file changed, 1 insertion(+)
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