[flang-commits] [flang] f9af5c1 - [flang][cmake] Fix bcc dependencies (#125822)
via flang-commits
flang-commits at lists.llvm.org
Wed Feb 5 02:58:48 PST 2025
Author: Nikita Popov
Date: 2025-02-05T11:58:44+01:00
New Revision: f9af5c145f40480d46874b643ca2b1237e9fbb2a
URL: https://github.com/llvm/llvm-project/commit/f9af5c145f40480d46874b643ca2b1237e9fbb2a
DIFF: https://github.com/llvm/llvm-project/commit/f9af5c145f40480d46874b643ca2b1237e9fbb2a.diff
LOG: [flang][cmake] Fix bcc dependencies (#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.
Added:
Modified:
flang/tools/bbc/CMakeLists.txt
Removed:
################################################################################
diff --git a/flang/tools/bbc/CMakeLists.txt b/flang/tools/bbc/CMakeLists.txt
index 85aeb85e0c53093..97462be83ea4389 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