[all-commits] [llvm/llvm-project] e601b2: [flang][driver] Add support for generating executa...

Andrzej WarzyƄski via All-commits all-commits at lists.llvm.org
Thu May 19 07:49:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: e601b2a1542710789395ab1121b1ccc7076e39d1
      https://github.com/llvm/llvm-project/commit/e601b2a1542710789395ab1121b1ccc7076e39d1
  Author: Andrzej Warzynski <andrzej.warzynski at arm.com>
  Date:   2022-05-19 (Thu, 19 May 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/CommonArgs.cpp
    M clang/lib/Driver/ToolChains/CommonArgs.h
    M clang/lib/Driver/ToolChains/Darwin.cpp
    M clang/lib/Driver/ToolChains/Gnu.cpp
    M flang/lib/Optimizer/CodeGen/Target.cpp
    M flang/test/Driver/linker-flags.f90

  Log Message:
  -----------
  [flang][driver] Add support for generating executables on MacOSX/Darwin

This patch basically extends https://reviews.llvm.org/D122008 with
support for MacOSX/Darwin.

To facilitate this, I've added `MacOSX` to the list of supported OSes in
Target.cpp. Flang already supports `Darwin` and it doesn't really do
anything OS-specific there (it could probably safely skip checking the
OS for now).

Note that generating executables remains hidden behind the
`-flang-experimental-exec` flag. Also, we don't need to add `-lm` on
MacOSX as `libm` is effectively included in `libSystem` (which is linked
in unconditionally).

Differential Revision: https://reviews.llvm.org/D125628




More information about the All-commits mailing list