Skip to content

Commit 46a737c

Browse files
committed
[LLVM] Fix linking object library in tablegen
Summary: The patch #80847 introduced some changes to how we build tablegen. Some files weren't build included properly on my build. We don't need to fish out the objects directly from an object library build, we can simply add it to the link libraries and CMake will include them for you. This fixed the issue of missings defs for me and is more canonical.
1 parent 684ca6a commit 46a737c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/utils/TableGen/Common/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ add_llvm_library(LLVMTableGenCommon STATIC OBJECT EXCLUDE_FROM_ALL
3333
SubtargetFeatureInfo.cpp
3434
Types.cpp
3535
VarLenCodeEmitterGen.cpp
36-
$<TARGET_OBJECTS:obj.LLVMTableGenBasic>
36+
37+
LINK_LIBS
38+
LLVMTableGenBasic
3739

3840
DEPENDS
3941
vt_gen

0 commit comments

Comments
 (0)