Details
- Reviewers
rriddle - Commits
- rG63aaf9a6e7f9: [mlir] Add missing CMake deps to mlir-pdll
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
The missing dep on MLIRIR actually showed up as a race condition in the build process on a GH runner.
I'm still seeing build failures due to mlir-pdll of the kind:
/builddir/build/BUILD/llvm-project-15.0.0.src/mlir/include/mlir/IR/BuiltinAttributeInterfaces.h:279:10: fatal error: mlir/IR/BuiltinAttributeInterfaces.h.inc: No such file or directory
I'm not sure what the exact meaning of target_link_libraries is, but I guess it only requires the library to be built before mlir-pdll is linked, but mlit-pdll.cpp.o still gets built before mlir/include/IR tablegen headers are generated, on which it depends.
Looks like mlir-pdll is unlike other tablegen targets in that it depends on tablegened files itself.
It seems that the reproducer for the build failure is basically "use make instead of ninja". I've put up https://reviews.llvm.org/D125010 with a fix, though I'm not very confident with cmake, so not sure this is the right thing to do.