[llvm] [Fortran] Use INTERFACE targets for options and dependencies (PR #193469)
Michael Kruse via llvm-commits
llvm-commits at lists.llvm.org
Mon Jul 6 05:37:27 PDT 2026
Meinersbur wrote:
@tarunprabhu Could you re-review this. There were significant changes since you last review.
1. Removal of `fortran-link-depends` etc. After #197687 there are no libraries anymore that require linking from Flang-generated object files. Potentially need to be re-added if we start implementing parts of the runtime in Fortran, but it would be unused currently.
2. Re-add a "barrier" that #205634 removed. While not needed for flang-rt internally anymore, it seems that `target_link_libraries(libomp-mod PRIVATE flang-rt-mod)` does not cause a target-level dependency on flang-rt-mod, only file-level dependencies. For the file-level dependencies to have an effect, ninja/make would first need to scan the dependencies which does not happen (or possibly does not know in by which search path the .mod file is going to be resolved by) until the .mod file exists in the first place.
https://github.com/llvm/llvm-project/pull/193469
More information about the llvm-commits
mailing list