[flang-commits] [flang] [flang] Fix standalone build regression from #161179 (PR #164309)

Michał Górny via flang-commits flang-commits at lists.llvm.org
Mon Oct 20 12:48:14 PDT 2025


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

Fix incorrect linking and dependencies introduced in #161179 that break standalone builds of Flang.

>From 2813a402d4c1db285e2fd68fb739a4737136e48b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny at gentoo.org>
Date: Mon, 20 Oct 2025 21:46:47 +0200
Subject: [PATCH] [flang] Fix standalone build regression from #161179
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Fix incorrect linking and dependencies introduced in #161179 that break
standalone builds of Flang.

Signed-off-by: Michał Górny <mgorny at gentoo.org>
---
 flang/lib/Optimizer/Dialect/MIF/CMakeLists.txt | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/flang/lib/Optimizer/Dialect/MIF/CMakeLists.txt b/flang/lib/Optimizer/Dialect/MIF/CMakeLists.txt
index d52ab097ddbf4..ed8463e9b0330 100644
--- a/flang/lib/Optimizer/Dialect/MIF/CMakeLists.txt
+++ b/flang/lib/Optimizer/Dialect/MIF/CMakeLists.txt
@@ -3,18 +3,22 @@ add_flang_library(MIFDialect
   MIFOps.cpp
 
   DEPENDS
-  MLIRIR
   MIFOpsIncGen
 
   LINK_LIBS
   FIRDialect
   FIRDialectSupport
   FIRSupport
-  MLIRIR
-  MLIRTargetLLVMIRExport
 
   LINK_COMPONENTS
   AsmParser
   AsmPrinter
   Remarks
+
+  MLIR_DEPS
+  MLIRIR
+
+  MLIR_LIBS
+  MLIRIR
+  MLIRTargetLLVMIRExport
 )



More information about the flang-commits mailing list