@@ -7,18 +7,25 @@ add_subdirectory(Common)
77
88set (LLVM_LINK_COMPONENTS Support)
99
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
10+ # Sources included in llvm-min-tblgen and llvm-tblgen.
11+ add_llvm_library(LLVMTableGenBoth OBJECT EXCLUDE_FROM_ALL DISABLE_LLVM_LINK_LLVM_DYLIB
1512 TableGen.cpp
1613 ARMTargetDefEmitter.cpp
1714 Attributes.cpp
1815 DirectiveEmitter.cpp
1916 IntrinsicEmitter.cpp
2017 RISCVTargetDefEmitter.cpp
2118 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>
2229 $<TARGET_OBJECTS:obj.LLVMTableGenBasic>
2330
2431 PARTIAL_SOURCES_INTENDED
@@ -70,7 +77,7 @@ add_tablegen(llvm-tblgen LLVM
7077 X86ModRMFilters.cpp
7178 X86RecognizableInstr.cpp
7279
73- $<TARGET_OBJECTS:llvm-min-tblgen >
80+ $<TARGET_OBJECTS:obj.LLVMTableGenBoth >
7481 $<TARGET_OBJECTS:obj.LLVMTableGenBasic>
7582 $<TARGET_OBJECTS:obj.LLVMTableGenCommon>
7683
0 commit comments