[flang] Fix missing generated includes in out of tree build
authorDavid Spickett <david.spickett@linaro.org>
Wed, 19 Oct 2022 12:22:24 +0000 (12:22 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Wed, 19 Oct 2022 13:20:25 +0000 (13:20 +0000)
commit52d31be80eea6d051b7271528e70b852c490e201
tree59e78066919a4068fda92de96c595c1f1aee82e0
parent9af0184842597a28d1a5211701bb580b5413b02e
[flang] Fix missing generated includes in out of tree build

875fd9df76ded4a88a3a44b690f290ea98f91705 added a new dialect
with some generated files.

When flang is built out of tree (build llvm/clang/mlir first, then
build flang pointing at the first build) those files were not created
at all.

I don't 100% understand why not but juding by the comment at the top
of the file, add_mlir_interface probably expects to run in an MLIR
directory, as add_mlir_dialect does.

So in the same way, I've just inlined enough of that function to
fix the out of tree build.

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D136250
flang/include/flang/Optimizer/Dialect/CMakeLists.txt