[flang-commits] [flang] [flang] Fix standalone builds against installed MLIR (PR #126387)

Michał Górny via flang-commits flang-commits at lists.llvm.org
Sat Feb 15 08:41:47 PST 2025


================
@@ -228,6 +228,11 @@ if (FLANG_STANDALONE_BUILD)
     add_custom_target(doxygen ALL)
   endif()
 
+  # Override the value from installed CMake files, as they refer
+  # to the directory used during the original MLIR package build,
+  # which may be no longer available.  Instead, use the current checkout.
+  set(MLIR_MAIN_SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../mlir )
----------------
mgorny wrote:

Oh, thanks for letting me know. I'm going to test if I can revert it cleanly in a minute.

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


More information about the flang-commits mailing list