[all-commits] [llvm/llvm-project] 1264d7: [driver] Generalize the code that adds the path of...

Daniel Chen via All-commits all-commits at lists.llvm.org
Sun Apr 13 06:22:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1264d7a53a4de3094672be2a248db57b213f33ac
      https://github.com/llvm/llvm-project/commit/1264d7a53a4de3094672be2a248db57b213f33ac
  Author: Daniel Chen <cdchen at ca.ibm.com>
  Date:   2025-04-13 (Sun, 13 Apr 2025)

  Changed paths:
    M clang/include/clang/Driver/Options.td
    M clang/include/clang/Driver/ToolChain.h
    M clang/lib/Driver/ToolChain.cpp
    M clang/lib/Driver/ToolChains/AIX.cpp
    M clang/lib/Driver/ToolChains/AIX.h
    M clang/lib/Driver/ToolChains/PPCLinux.cpp
    M clang/lib/Driver/ToolChains/PPCLinux.h
    M flang/test/Driver/flang-ld-powerpc.f90
    M flang/test/Driver/linker-flags.f90

  Log Message:
  -----------
  [driver] Generalize the code that adds the path of libflang_rt.runtime.a. (#134362)

The PR is to generalize the re-use of the `compilerRT` code of adding
the path of `libflang_rt.runtime.a (so)` from AIX and LoP only to all
platforms via a new function `addFlangRTLibPath`.

It also added `-static-libflangrt` and `-shared-libflangrt` compiler
options to allow users choosing which `flang-rt` to link to. It defaults
to shared `flang-rt`, which is consistent with the linker behavior,
except on AIX, it defaults to static.

Also, PR #134320 exposed an issue in PR #131041 that the the overriding
`addFortranRuntimeLibs` is missing the link to `libquadmath`. This PR
also fixed that and restored the test case that PR #131041 broke.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list