Skip to content

Commit 7434a6b

Browse files
committed
[TableGen] Fix Linker Errors
Fix linker errors after landing fa3d789
1 parent 772e316 commit 7434a6b

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

llvm/utils/TableGen/Basic/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ set(LLVM_LINK_COMPONENTS
88
TableGen
99
)
1010

11-
add_llvm_library(LLVMTableGenBasic STATIC OBJECT EXCLUDE_FROM_ALL
11+
add_llvm_library(LLVMTableGenBasic OBJECT EXCLUDE_FROM_ALL
1212
CodeGenIntrinsics.cpp
1313
SDNodeProperties.cpp
1414
)

llvm/utils/TableGen/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ add_tablegen(llvm-tblgen LLVM
7575
X86MnemonicTables.cpp
7676
X86ModRMFilters.cpp
7777
X86RecognizableInstr.cpp
78+
$<TARGET_OBJECTS:obj.LLVMTableGenBasic>
7879
$<TARGET_OBJECTS:obj.LLVMTableGenCommon>
7980

8081
DEPENDS
8182
intrinsics_gen # via llvm-min-tablegen
8283
)
83-
target_link_libraries(llvm-tblgen PRIVATE LLVMTableGenCommon)
8484
set_target_properties(llvm-tblgen PROPERTIES FOLDER "Tablegenning")

llvm/utils/TableGen/Common/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ add_llvm_library(LLVMTableGenCommon STATIC OBJECT EXCLUDE_FROM_ALL
3939
vt_gen
4040
)
4141
set_target_properties(LLVMTableGenCommon PROPERTIES FOLDER "Tablegenning")
42-
target_link_libraries(LLVMTableGenCommon PUBLIC LLVMTableGenBasic)
4342

4443
# Users may include its headers as "Common/*.h"
4544
target_include_directories(LLVMTableGenCommon

0 commit comments

Comments
 (0)