[Mlir-commits] [mlir] [cmake][mlir] Fix the build under the Xcode generator (PR #101057)
Jakub Kuderski
llvmlistbot at llvm.org
Mon Jul 29 12:54:15 PDT 2024
================
@@ -8,3 +8,10 @@ mlir_tablegen(ArithOpsAttributes.cpp.inc -gen-attrdef-defs
add_mlir_dialect(ArithOps arith)
add_mlir_doc(ArithOps ArithOps Dialects/ -gen-dialect-doc)
add_mlir_interface(ArithOpsInterfaces)
+
+if(XCODE)
+ # The Xcode generator needs a dependency between these two, one way or
+ # another, since both targets generate the same file:
+ # tools/mlir/include/mlir/Dialect/Arith/IR/ArithOpsEnums.h.inc
+ add_dependencies(MLIRArithOpsInterfacesIncGen MLIRArithOpsIncGen)
+endif()
----------------
kuhar wrote:
nit: missing newline
https://github.com/llvm/llvm-project/pull/101057
More information about the Mlir-commits
mailing list