[flang-commits] [flang] [flang] Fix CMake dependency in CUF/Attributes (PR #92751)

David Truby via flang-commits flang-commits at lists.llvm.org
Mon May 20 06:38:21 PDT 2024


https://github.com/DavidTruby created https://github.com/llvm/llvm-project/pull/92751

flang/lib/Optimizer/Dialect/CUF/Attributes/CUFAttr.cpp includes
CUFDialect.h.inc, but the target generating that isn't currently
depended on in CUF/Attributes. This patch adds that missing dependency.

Fixes #92635


>From c94275bef67bdf017f61eaf04b916fe7b83ee7c4 Mon Sep 17 00:00:00 2001
From: David Truby <david.truby at arm.com>
Date: Mon, 20 May 2024 13:27:11 +0000
Subject: [PATCH] [flang] Fix CMake dependency in CUF/Attributes

flang/lib/Optimizer/Dialect/CUF/Attributes/CUFAttr.cpp includes
CUFDialect.h.inc, but the target generating that isn't currently
depended on in CUF/Attributes. This patch adds that missing dependency.

Fixes #92635
---
 flang/lib/Optimizer/Dialect/CUF/Attributes/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/flang/lib/Optimizer/Dialect/CUF/Attributes/CMakeLists.txt b/flang/lib/Optimizer/Dialect/CUF/Attributes/CMakeLists.txt
index 81db40f3ba466..ec5484c1d6108 100644
--- a/flang/lib/Optimizer/Dialect/CUF/Attributes/CMakeLists.txt
+++ b/flang/lib/Optimizer/Dialect/CUF/Attributes/CMakeLists.txt
@@ -5,6 +5,7 @@ add_flang_library(CUFAttrs
   DEPENDS
   MLIRIR
   CUFAttrsIncGen
+  CUFOpsIncGen
 
   LINK_LIBS
   MLIRTargetLLVMIRExport



More information about the flang-commits mailing list