[flang-commits] [flang] [flang] Revert MLIR_MAIN_SRC_DIR override (PR #127337)

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


https://github.com/mgorny created https://github.com/llvm/llvm-project/pull/127337

This change is no longer necessary after #125842.  Thanks to @nikic for letting me know.

>From 47a737bae36a8b2180d90f4685244bf06d5a736c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny at gentoo.org>
Date: Sat, 15 Feb 2025 17:46:08 +0100
Subject: [PATCH] [flang] Revert MLIR_MAIN_SRC_DIR setting

This change is no longer necessary after #125842.  Thanks to @nikic
for letting me know.
---
 flang/CMakeLists.txt | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/flang/CMakeLists.txt b/flang/CMakeLists.txt
index cca56bfdc88e6..c012b884ae3be 100644
--- a/flang/CMakeLists.txt
+++ b/flang/CMakeLists.txt
@@ -230,11 +230,6 @@ 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 )
-
 else()
   option(FLANG_INCLUDE_TESTS
          "Generate build targets for the Flang unit tests."



More information about the flang-commits mailing list