[all-commits] [llvm/llvm-project] cf1bde: [Driver] Link Flang runtime on Solaris (#65644)

Rainer Orth via All-commits all-commits at lists.llvm.org
Wed Oct 18 07:12:25 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cf1bde9a15d711564c51e707b6200f1b5f508b9f
      https://github.com/llvm/llvm-project/commit/cf1bde9a15d711564c51e707b6200f1b5f508b9f
  Author: Rainer Orth <ro at gcc.gnu.org>
  Date:   2023-10-18 (Wed, 18 Oct 2023)

  Changed paths:
    M clang/lib/Driver/ToolChains/Solaris.cpp
    M flang/test/Driver/linker-flags.f90

  Log Message:
  -----------
  [Driver] Link Flang runtime on Solaris (#65644)

I noticed that `flang-new` cannot link Fortran executables on Solaris since the runtime libs are missing.

This patch fixes this, following `Gnu.cpp`. The `linker-flags.f90` testcase is augmented to test for this,
renaming the `GNU` label to `UNIX` so it can be reused.  Also use the current form `--target=` in the tests
and join the `-l` lines in the test for readibility.

Tested on `amd64-pc-solaris2.11`, `sparcv9-sun-solaris2.11`, and
`x86_64-pc-linux-gnu`.




More information about the All-commits mailing list