mlir/Dialect/Vector/CMakeLists.txt doesn't seem to need this?
If this is critically breaking bots then we should revert the original patch. We should take some time to get to the bottom of this specific issue. I don't think that MAKE_DIRECTORY is the right solution here.
Maybe you could move to a slightly different directory structure and follow what other dialects are doing. Using a top-level CMakeLists.txt like
# lib/Dialect/Shape/CMakeLists.txt add_subdirectory(IR)
and then add the dialect library generation directives in lib/Dialect/Shape/IR?
I think it would make sense to follow the same conventions as, say, the Linalg dialect.
First, sorry for the breakage.
If you want to revert the changes, for now you would need to revert both https://github.com/llvm/llvm-project/commit/0a554e607ff6247b79d1c4f184999750e5ad53b9 and https://github.com/llvm/llvm-project/commit/6aab70945915ef1d565f1146734416029549a5a9
I'm not able to reproduce it myself and don't see it in the buildbots, but assuming this works, https://reviews.llvm.org/D81328 sounds like a good final end state like Kayjukh suggested, but I could do this and undo the reverts after also.
(I'm not commenting on the DRR because I'm not sure what that stands for).