Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[flang][cmake] Fix bcc dependencies #125822

Merged
merged 1 commit into from
Feb 5, 2025
Merged

[flang][cmake] Fix bcc dependencies #125822

merged 1 commit into from
Feb 5, 2025

Conversation

nikic
Copy link
Contributor

@nikic nikic commented Feb 5, 2025

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. (This is the last one, I was able to build flang now \o/)

The Fortran libraries are not part of MLIR, so they should use
target_link_libraries() rather than mlir_target_link_libraries().
@nikic nikic requested a review from mgorny February 5, 2025 09:03
@llvmbot llvmbot added the flang Flang issues not falling into any other category label Feb 5, 2025
Copy link
Member

@mgorny mgorny left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@mgorny
Copy link
Member

mgorny commented Feb 5, 2025

@nikic, by the way, do you happen to know why MLIR uses LINK_LIBS PUBLIC rather than PRIVATE all over the place?

@nikic nikic merged commit f9af5c1 into llvm:main Feb 5, 2025
10 checks passed
@nikic nikic deleted the flang-lib-fix-2 branch February 5, 2025 10:58
nikic added a commit to nikic/llvm-project that referenced this pull request Feb 5, 2025
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
llvm#120966.

(cherry picked from commit f9af5c1)
nikic added a commit to nikic/llvm-project that referenced this pull request Feb 11, 2025
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
llvm#120966.

(cherry picked from commit f9af5c1)
Icohedron pushed a commit to Icohedron/llvm-project that referenced this pull request Feb 11, 2025
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
llvm#120966.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flang Flang issues not falling into any other category
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants