[all-commits] [llvm/llvm-project] d07282: [Darwin toolchain] Tune the logic for finding arcl...

Steven Wu via All-commits all-commits at lists.llvm.org
Wed Jul 20 16:46:50 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: d0728260577d66b4b4d922adf0a40de86f09ccf5
      https://github.com/llvm/llvm-project/commit/d0728260577d66b4b4d922adf0a40de86f09ccf5
  Author: Steven Wu <stevenwu at apple.com>
  Date:   2022-07-20 (Wed, 20 Jul 2022)

  Changed paths:
    M clang/lib/Driver/ToolChains/Darwin.cpp

  Log Message:
  -----------
  [Darwin toolchain] Tune the logic for finding arclite.

The heuristic used to determine where the arclite libraries are to be
found was based on the path of the `clang` executable. However, in some
scenarios the `clang` executable is within a toolchain that does not
have arclite. When this happens, derive the arclite paths from the
sysroot option.

This allows Clang to correctly derive the arclite directory in, e.g.,
Swift CI, using similar logic to what the Swift driver has been doing
for several years.

Patched by Doug Gregor.

Reviewed By: keith

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




More information about the All-commits mailing list