Skip to content

Commit e8d8754

Browse files
committed
Revert "Make TableGenGlobalISel an object library"
This reverts commit 2c3cf62. Causes build failures on x86_64, will respond to commit thread with link errors.
1 parent 2c3cf62 commit e8d8754

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

llvm/unittests/TableGen/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ add_public_tablegen_target(AutomataTestTableGen)
1212
add_llvm_unittest(TableGenTests
1313
CodeExpanderTest.cpp
1414
AutomataTest.cpp
15-
$<TARGET_OBJECTS:obj.LLVMTableGenGlobalISel>
1615
)
1716
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../utils/TableGen)
18-
target_link_libraries(TableGenTests PRIVATE LLVMTableGen)
17+
target_link_libraries(TableGenTests PRIVATE LLVMTableGenGlobalISel LLVMTableGen)

llvm/utils/TableGen/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ add_tablegen(llvm-tblgen LLVM
5656
X86RecognizableInstr.cpp
5757
WebAssemblyDisassemblerEmitter.cpp
5858
CTagsEmitter.cpp
59-
$<TARGET_OBJECTS:obj.LLVMTableGenGlobalISel>
6059
)
60+
target_link_libraries(llvm-tblgen PRIVATE LLVMTableGenGlobalISel)
6161
set_target_properties(llvm-tblgen PROPERTIES FOLDER "Tablegenning")

llvm/utils/TableGen/GlobalISel/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ set(LLVM_LINK_COMPONENTS
33
TableGen
44
)
55

6-
add_llvm_library(LLVMTableGenGlobalISel OBJECT
6+
add_llvm_library(LLVMTableGenGlobalISel STATIC DISABLE_LLVM_LINK_LLVM_DYLIB
77
CodeExpander.cpp
88
GIMatchDag.cpp
99
GIMatchDagEdge.cpp

0 commit comments

Comments
 (0)