Skip to content

Commit

Permalink
llvm-tblgen: Split out obj.LLVMTableGenCommon
Browse files Browse the repository at this point in the history
`$<TARGET_OBJECTS:llvm-min-tblgen>` was too lazy.
It has `rc.res` in the list with MS toolchain.

Fixup for D146352
  • Loading branch information
chapuni committed May 2, 2023
1 parent b2367cd commit 137d803
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions llvm/utils/TableGen/CMakeLists.txt
@@ -1,18 +1,24 @@
add_subdirectory(GlobalISel)

set(LLVM_LINK_COMPONENTS Support)

add_tablegen(llvm-min-tblgen LLVM_HEADERS
add_llvm_library(LLVMTableGenCommon STATIC OBJECT EXCLUDE_FROM_ALL
Attributes.cpp
CodeGenIntrinsics.cpp
DirectiveEmitter.cpp
IntrinsicEmitter.cpp
RISCVTargetDefEmitter.cpp
SDNodeProperties.cpp
TableGen.cpp
VTEmitter.cpp
PARTIAL_SOURCES_INTENDED
)
set_target_properties(LLVMTableGenCommon PROPERTIES FOLDER "Tablegenning")

set(LLVM_LINK_COMPONENTS Support)

add_tablegen(llvm-min-tblgen LLVM_HEADERS
TableGen.cpp
$<TARGET_OBJECTS:obj.LLVMTableGenCommon>
PARTIAL_SOURCES_INTENDED
)
set_target_properties(llvm-min-tblgen PROPERTIES FOLDER "Tablegenning")

add_tablegen(llvm-tblgen LLVM
Expand Down Expand Up @@ -60,6 +66,7 @@ add_tablegen(llvm-tblgen LLVM
SearchableTableEmitter.cpp
SubtargetEmitter.cpp
SubtargetFeatureInfo.cpp
TableGen.cpp
Types.cpp
VarLenCodeEmitterGen.cpp
X86DisassemblerTables.cpp
Expand All @@ -69,7 +76,7 @@ add_tablegen(llvm-tblgen LLVM
X86ModRMFilters.cpp
X86RecognizableInstr.cpp
WebAssemblyDisassemblerEmitter.cpp
$<TARGET_OBJECTS:llvm-min-tblgen>
$<TARGET_OBJECTS:obj.LLVMTableGenCommon>

DEPENDS
intrinsics_gen
Expand Down

0 comments on commit 137d803

Please sign in to comment.