[PATCH] D74588: Make TableGenGlobalISel an object library
Aaron Puchert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 31 18:08:36 PDT 2021
aaronpuchert updated this revision to Diff 334572.
aaronpuchert added a comment.
Let's do it the CMake 3.13 way, that seems to work even with the object library hack in `add_tablegen`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D74588/new/
https://reviews.llvm.org/D74588
Files:
llvm/unittests/TableGen/CMakeLists.txt
llvm/utils/TableGen/CMakeLists.txt
llvm/utils/TableGen/GlobalISel/CMakeLists.txt
Index: llvm/utils/TableGen/GlobalISel/CMakeLists.txt
===================================================================
--- llvm/utils/TableGen/GlobalISel/CMakeLists.txt
+++ llvm/utils/TableGen/GlobalISel/CMakeLists.txt
@@ -3,7 +3,7 @@
TableGen
)
-add_llvm_library(LLVMTableGenGlobalISel STATIC DISABLE_LLVM_LINK_LLVM_DYLIB
+add_llvm_library(LLVMTableGenGlobalISel OBJECT
CodeExpander.cpp
GIMatchDag.cpp
GIMatchDagEdge.cpp
Index: llvm/utils/TableGen/CMakeLists.txt
===================================================================
--- llvm/utils/TableGen/CMakeLists.txt
+++ llvm/utils/TableGen/CMakeLists.txt
@@ -57,5 +57,5 @@
WebAssemblyDisassemblerEmitter.cpp
CTagsEmitter.cpp
)
-target_link_libraries(llvm-tblgen PRIVATE LLVMTableGenGlobalISel)
+target_link_libraries(llvm-tblgen PRIVATE obj.LLVMTableGenGlobalISel)
set_target_properties(llvm-tblgen PROPERTIES FOLDER "Tablegenning")
Index: llvm/unittests/TableGen/CMakeLists.txt
===================================================================
--- llvm/unittests/TableGen/CMakeLists.txt
+++ llvm/unittests/TableGen/CMakeLists.txt
@@ -14,4 +14,4 @@
AutomataTest.cpp
)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../../utils/TableGen)
-target_link_libraries(TableGenTests PRIVATE LLVMTableGenGlobalISel LLVMTableGen)
+target_link_libraries(TableGenTests PRIVATE obj.LLVMTableGenGlobalISel LLVMTableGen)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D74588.334572.patch
Type: text/x-patch
Size: 1444 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210401/18fff8e6/attachment.bin>
More information about the llvm-commits
mailing list