0
0
mirror of https://github.com/llvm/llvm-project.git synced 2025-04-21 16:16:51 +00:00

[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().

This fixes an issue introduced in
https://github.com/llvm/llvm-project/pull/120966.

(cherry picked from commit f9af5c145f40480d46874b643ca2b1237e9fbb2a)
This commit is contained in:
Nikita Popov 2025-02-05 11:58:44 +01:00
parent dfa60a77e0
commit 4c4ed5e2f5

@ -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
)