[flang-commits] [flang] [Flang][Lower] Add missing dependencies to CMakeLists.txt (PR #77483)

Krzysztof Parzyszek via flang-commits flang-commits at lists.llvm.org
Wed Jan 10 15:50:21 PST 2024


https://github.com/kparzysz updated https://github.com/llvm/llvm-project/pull/77483

>From 30c0a8dcaf182ba750f5185433d3d18ea7ef4c05 Mon Sep 17 00:00:00 2001
From: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: Sat, 6 Jan 2024 08:32:32 -0600
Subject: [PATCH 1/3] [Flang][Lower] Add missing dependencies to CMakeLists.txt

Two additional component libraries: FrontendOpenACC and FrontendOpenMP.
---
 flang/lib/Lower/CMakeLists.txt | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/flang/lib/Lower/CMakeLists.txt b/flang/lib/Lower/CMakeLists.txt
index b13d415e02f1d9..8183d4280c2597 100644
--- a/flang/lib/Lower/CMakeLists.txt
+++ b/flang/lib/Lower/CMakeLists.txt
@@ -56,5 +56,7 @@ add_flang_library(FortranLower
   MLIRSCFToControlFlow
 
   LINK_COMPONENTS
+  FrontendOpenACC
+  FrontendOpenMP
   Support
 )

>From a2ba2b572bd7092dd7949d1dc87079150b848591 Mon Sep 17 00:00:00 2001
From: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: Wed, 10 Jan 2024 17:49:12 -0600
Subject: [PATCH 2/3] Remove the dependencies from "lower"

---
 flang/lib/Lower/CMakeLists.txt | 2 --
 1 file changed, 2 deletions(-)

diff --git a/flang/lib/Lower/CMakeLists.txt b/flang/lib/Lower/CMakeLists.txt
index 8183d4280c2597..b13d415e02f1d9 100644
--- a/flang/lib/Lower/CMakeLists.txt
+++ b/flang/lib/Lower/CMakeLists.txt
@@ -56,7 +56,5 @@ add_flang_library(FortranLower
   MLIRSCFToControlFlow
 
   LINK_COMPONENTS
-  FrontendOpenACC
-  FrontendOpenMP
   Support
 )

>From d1e8735965358fb0ab2b478429249c751f6547a7 Mon Sep 17 00:00:00 2001
From: Krzysztof Parzyszek <Krzysztof.Parzyszek at amd.com>
Date: Wed, 10 Jan 2024 17:49:36 -0600
Subject: [PATCH 3/3] Add FrontendOpenMP dependency to "parser"

---
 flang/lib/Parser/CMakeLists.txt | 1 +
 1 file changed, 1 insertion(+)

diff --git a/flang/lib/Parser/CMakeLists.txt b/flang/lib/Parser/CMakeLists.txt
index 600a2f67df4431..d364671d7a3229 100644
--- a/flang/lib/Parser/CMakeLists.txt
+++ b/flang/lib/Parser/CMakeLists.txt
@@ -30,6 +30,7 @@ add_flang_library(FortranParser
   LINK_COMPONENTS
   Support
   FrontendOpenACC
+  FrontendOpenMP
 
   DEPENDS
   omp_gen



More information about the flang-commits mailing list