Skip to content

Commit a35bd89

Browse files
committed
No additional object library necessary
1 parent 94dd647 commit a35bd89

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

llvm/utils/TableGen/CMakeLists.txt

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,18 @@ add_subdirectory(Common)
77

88
set(LLVM_LINK_COMPONENTS Support)
99

10-
# Sources included in llvm-min-tblgen and llvm-tblgen.
11-
add_llvm_library(LLVMTableGenBoth OBJECT EXCLUDE_FROM_ALL DISABLE_LLVM_LINK_LLVM_DYLIB
10+
# llvm-min-tablegen only contains a subset of backends necessary to
11+
# build llvm/include. It must not depend on TableGenCommon, as
12+
# TableGenCommon depends on this already to generate things such as
13+
# ValueType definitions.
14+
add_tablegen(llvm-min-tblgen LLVM_HEADERS
1215
TableGen.cpp
1316
ARMTargetDefEmitter.cpp
1417
Attributes.cpp
1518
DirectiveEmitter.cpp
1619
IntrinsicEmitter.cpp
1720
RISCVTargetDefEmitter.cpp
1821
VTEmitter.cpp
19-
20-
PARTIAL_SOURCES_INTENDED
21-
)
22-
23-
# llvm-min-tablegen only contains a subset of backends necessary to
24-
# build llvm/include. It must not depend on TableGenCommon, as
25-
# TableGenCommon depends on this already to generate things such as
26-
# ValueType definitions.
27-
add_tablegen(llvm-min-tblgen LLVM_HEADERS
28-
$<TARGET_OBJECTS:obj.LLVMTableGenBoth>
2922
$<TARGET_OBJECTS:obj.LLVMTableGenBasic>
3023

3124
PARTIAL_SOURCES_INTENDED
@@ -77,7 +70,7 @@ add_tablegen(llvm-tblgen LLVM
7770
X86ModRMFilters.cpp
7871
X86RecognizableInstr.cpp
7972

80-
$<TARGET_OBJECTS:obj.LLVMTableGenBoth>
73+
$<TARGET_OBJECTS:llvm-min-tblgen>
8174
$<TARGET_OBJECTS:obj.LLVMTableGenBasic>
8275
$<TARGET_OBJECTS:obj.LLVMTableGenCommon>
8376

0 commit comments

Comments
 (0)