[flang-commits] [flang] [flang][cmake] Fix bcc dependencies (PR #152306)
Michael Kruse via flang-commits
flang-commits at lists.llvm.org
Wed Aug 6 06:20:44 PDT 2025
https://github.com/Meinersbur created https://github.com/llvm/llvm-project/pull/152306
Re-apply "Fix bcc dependencies #125822"
It was overwritten due to an automatic merge gone wrong for https://github.com/llvm/llvm-project/pull/124416
`git cherry-pick f9af5c145f40480d46874b643ca2b1237e9fbb2a` applied in 97cf061e83a0d0cada38d8a2d75c8a840b01ba26 ignored the renaming of FortranCommon into FortranSupport.
Original comment:
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 #20966. (This is the last one, I was able to build flang now \o/)
>From c53c7851b9db2f97b23ce822c4f07db608fbd74b Mon Sep 17 00:00:00 2001
From: Michael Kruse <llvm-project at meinersbur.de>
Date: Wed, 6 Aug 2025 15:17:03 +0200
Subject: [PATCH] [flang][cmake] Fix bcc dependencies
---
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 469266cc81558..7516157731b5e 100644
--- a/flang/tools/bbc/CMakeLists.txt
+++ b/flang/tools/bbc/CMakeLists.txt
@@ -30,6 +30,11 @@ target_link_libraries(bbc PRIVATE
flangFrontend
flangPasses
FlangOpenMPTransforms
+ FortranSupport
+ FortranParser
+ FortranEvaluate
+ FortranSemantics
+ FortranLower
)
mlir_target_link_libraries(bbc PRIVATE
@@ -37,9 +42,4 @@ mlir_target_link_libraries(bbc PRIVATE
${extension_libs}
MLIRAffineToStandard
MLIRSCFToControlFlow
- FortranSupport
- FortranParser
- FortranEvaluate
- FortranSemantics
- FortranLower
)
More information about the flang-commits
mailing list