[PATCH] D125010: [MLIR] Fix build with make
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri May 6 05:52:58 PDT 2022
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG686bd6dd2bf5: [MLIR] Fix build with make (authored by nikic).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D125010/new/
https://reviews.llvm.org/D125010
Files:
llvm/cmake/modules/AddLLVM.cmake
mlir/tools/mlir-pdll/CMakeLists.txt
Index: mlir/tools/mlir-pdll/CMakeLists.txt
===================================================================
--- mlir/tools/mlir-pdll/CMakeLists.txt
+++ mlir/tools/mlir-pdll/CMakeLists.txt
@@ -4,18 +4,22 @@
TableGen
)
+set(LIBS
+ MLIRIR
+ MLIRPDLLAST
+ MLIRPDLLCodeGen
+ MLIRPDLLODS
+ MLIRPDLLParser
+ )
+
add_tablegen(mlir-pdll MLIR_PDLL
mlir-pdll.cpp
+
+ DEPENDS
+ ${LIBS}
)
set_target_properties(mlir-pdll PROPERTIES FOLDER "Tablegenning")
-target_link_libraries(mlir-pdll
- PRIVATE
- MLIRIR
- MLIRPDLLAST
- MLIRPDLLCodeGen
- MLIRPDLLODS
- MLIRPDLLParser
- )
+target_link_libraries(mlir-pdll PRIVATE ${LIBS})
mlir_check_all_link_libraries(mlir-pdll)
Index: llvm/cmake/modules/AddLLVM.cmake
===================================================================
--- llvm/cmake/modules/AddLLVM.cmake
+++ llvm/cmake/modules/AddLLVM.cmake
@@ -877,6 +877,9 @@
)
llvm_update_compile_flags(${obj_name})
set(ALL_FILES "$<TARGET_OBJECTS:${obj_name}>")
+ if(ARG_DEPENDS)
+ add_dependencies(${obj_name} ${ARG_DEPENDS})
+ endif()
set_target_properties(${obj_name} PROPERTIES FOLDER "Object Libraries")
endif()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125010.427608.patch
Type: text/x-patch
Size: 1182 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220506/df7884d4/attachment.bin>
More information about the llvm-commits
mailing list