[flang-commits] [flang] [flang][cmake] Fix bcc dependencies (PR #125822)
Nikita Popov via flang-commits
flang-commits at lists.llvm.org
Wed Feb 5 01:03:07 PST 2025
https://github.com/nikic created https://github.com/llvm/llvm-project/pull/125822
The Fortran libraries are not part of MLIR, so they should use target_link_libraries() rather than mlir_target_link_libraries().
This fixes an issue introduced in https://github.com/llvm/llvm-project/pull/120966. (This is the last one, I was able to build flang now \o/)
>From 0df15ac6a1a0ef8254fead147e8f1704748c284f Mon Sep 17 00:00:00 2001
From: Nikita Popov <npopov at redhat.com>
Date: Wed, 5 Feb 2025 09:49:15 +0100
Subject: [PATCH] [flang][cmake] Fix bcc dependencies
The Fortran libraries are not part of MLIR, so they should use
target_link_libraries() rather than mlir_target_link_libraries().
---
flang/tools/bbc/CMakeLists.txt | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/flang/tools/bbc/CMakeLists.txt b/flang/tools/bbc/CMakeLists.txt
index 85aeb85e0c5309..97462be83ea438 100644
--- a/flang/tools/bbc/CMakeLists.txt
+++ b/flang/tools/bbc/CMakeLists.txt
@@ -29,6 +29,11 @@ target_link_libraries(bbc PRIVATE
flangFrontend
flangPasses
FlangOpenMPTransforms
+ FortranCommon
+ FortranParser
+ FortranEvaluate
+ FortranSemantics
+ FortranLower
)
mlir_target_link_libraries(bbc PRIVATE
@@ -36,9 +41,4 @@ mlir_target_link_libraries(bbc PRIVATE
${extension_libs}
MLIRAffineToStandard
MLIRSCFToControlFlow
- FortranCommon
- FortranParser
- FortranEvaluate
- FortranSemantics
- FortranLower
)
More information about the flang-commits
mailing list