[flang-commits] [flang] [flang] [mlir] Avoid clobbering mlir-tblgen target by defining dummy imported targets (PR #150987)

via flang-commits flang-commits at lists.llvm.org
Fri Aug 15 04:25:57 PDT 2025


Acture wrote:

> That seems to be a different error that you are hitting. `mlir-tblgen` is looked for in the main flang CMake file. How do you set `LLVM_TOOLS_BINARY_DIR` in your case?

 I set `LLVM_TOOLS_BINARY_DIR` to the `bin` directory produced by the tblgen-only build (`${buildLlvmTools.tblgen}/bin`).  
I also tried pointing it to the `bin` directories from the libllvm package (`${libllvm.out}/bin`) and the full llvm build (`${llvm.out}/bin`),  but none of them worked.


https://github.com/llvm/llvm-project/pull/150987


More information about the flang-commits mailing list