Skip to content

Commit f9af5c1

Browse files
authored
[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.
1 parent 4287c72 commit f9af5c1

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

flang/tools/bbc/CMakeLists.txt

+5-5
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)