Skip to content

Commit 137d803

Browse files
committed
llvm-tblgen: Split out obj.LLVMTableGenCommon
`$<TARGET_OBJECTS:llvm-min-tblgen>` was too lazy. It has `rc.res` in the list with MS toolchain. Fixup for D146352
1 parent b2367cd commit 137d803

File tree

1 file changed

+12
-5
lines changed

1 file changed

+12
-5
lines changed

llvm/utils/TableGen/CMakeLists.txt

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,24 @@
11
add_subdirectory(GlobalISel)
22

3-
set(LLVM_LINK_COMPONENTS Support)
4-
5-
add_tablegen(llvm-min-tblgen LLVM_HEADERS
3+
add_llvm_library(LLVMTableGenCommon STATIC OBJECT EXCLUDE_FROM_ALL
64
Attributes.cpp
75
CodeGenIntrinsics.cpp
86
DirectiveEmitter.cpp
97
IntrinsicEmitter.cpp
108
RISCVTargetDefEmitter.cpp
119
SDNodeProperties.cpp
12-
TableGen.cpp
1310
VTEmitter.cpp
1411
PARTIAL_SOURCES_INTENDED
1512
)
13+
set_target_properties(LLVMTableGenCommon PROPERTIES FOLDER "Tablegenning")
14+
15+
set(LLVM_LINK_COMPONENTS Support)
16+
17+
add_tablegen(llvm-min-tblgen LLVM_HEADERS
18+
TableGen.cpp
19+
$<TARGET_OBJECTS:obj.LLVMTableGenCommon>
20+
PARTIAL_SOURCES_INTENDED
21+
)
1622
set_target_properties(llvm-min-tblgen PROPERTIES FOLDER "Tablegenning")
1723

1824
add_tablegen(llvm-tblgen LLVM
@@ -60,6 +66,7 @@ add_tablegen(llvm-tblgen LLVM
6066
SearchableTableEmitter.cpp
6167
SubtargetEmitter.cpp
6268
SubtargetFeatureInfo.cpp
69+
TableGen.cpp
6370
Types.cpp
6471
VarLenCodeEmitterGen.cpp
6572
X86DisassemblerTables.cpp
@@ -69,7 +76,7 @@ add_tablegen(llvm-tblgen LLVM
6976
X86ModRMFilters.cpp
7077
X86RecognizableInstr.cpp
7178
WebAssemblyDisassemblerEmitter.cpp
72-
$<TARGET_OBJECTS:llvm-min-tblgen>
79+
$<TARGET_OBJECTS:obj.LLVMTableGenCommon>
7380

7481
DEPENDS
7582
intrinsics_gen

0 commit comments

Comments
 (0)