Skip to content

Commit 29f3a87

Browse files
committed
[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 #120966. (cherry picked from commit f9af5c1)
1 parent 7745a4c commit 29f3a87

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

flang/tools/bbc/CMakeLists.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ target_link_libraries(bbc PRIVATE
2929
flangFrontend
3030
flangPasses
3131
FlangOpenMPTransforms
32+
FortranCommon
33+
FortranParser
34+
FortranEvaluate
35+
FortranSemantics
36+
FortranLower
3237
)
3338

3439
mlir_target_link_libraries(bbc PRIVATE
3540
${dialect_libs}
3641
${extension_libs}
3742
MLIRAffineToStandard
3843
MLIRSCFToControlFlow
39-
FortranCommon
40-
FortranParser
41-
FortranEvaluate
42-
FortranSemantics
43-
FortranLower
4444
)

0 commit comments

Comments
 (0)