Even though MLIR has been migrated to the monorepo, to let it be built we need to create a symlink inside the 'llvm/tools' directory. It looks like this directory should be ignored by Git since it is tracked independently as a part of the monorepo.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Even though MLIR has been migrated to the monorepo, to let it be built we need to create a symlink inside the 'llvm/tools' directory. It looks like this directory should be ignored by Git since it is tracked independently as a part of the monorepo.
Are there any plans to fix this so that it can be built with -DLLVM_ENABLE_PROJECTS like the other sub-projects?
This is already the case, there is no need for a symlink: https://mlir.llvm.org/getting_started/
@mehdi_amini I didn't know about this option, sorry for incorrect message. But there has been another workflow for long time with symlinking projects into llvm (I use this approach as for clang, polly and lld) and I think it could be suitable to ignore llvm/tools/mlir as it did for other subprojects: polly, clang, etc.
I don't think the symlink approach is anything but an artifact of how the project was structured before the monorepo.
It works "by accident" with MLIR at this point, as this was the easiest way for me to hook into CMake when I merged MLIR in the monorepo, otherwise I wouldn't have supported this.