Skip to content

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.
Meinersbur added a commit that referenced this pull request Aug 6, 2025
It was overwritten due to an automatic merge gone wrong for #124416
Meinersbur added a commit that referenced this pull request Aug 6, 2025
Meinersbur pushed a commit to Meinersbur/llvm-project that referenced this pull request Aug 6, 2025
This was effectively reverted do to an automatic merge gone wrong for
Meinersbur added a commit to Meinersbur/llvm-project that referenced this pull request Aug 6, 2025
Meinersbur added a commit that referenced this pull request Aug 6, 2025
Re-apply "[flang][cmake] Fix bcc dependencies (#125822)"

It was overwritten due to an automatic merge gone wrong for #124416.

`git cherry-pick f9af5c1` applied in
97cf061 ignored the renaming of
FortranCommon into FortranSupport after #125822.

Original commit message:

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 #20966.
tru pushed a commit to llvmbot/llvm-project that referenced this pull request Aug 8, 2025
Re-apply "[flang][cmake] Fix bcc dependencies (llvm#125822)"

It was overwritten due to an automatic merge gone wrong for llvm#124416.

`git cherry-pick f9af5c1` applied in
97cf061 ignored the renaming of
FortranCommon into FortranSupport after llvm#125822.

Original commit message:

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#20966.

(cherry picked from commit 2bb23d4)
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