This is an archive of the discontinued LLVM Phabricator instance.

[Darwin toolchain] Tune the logic for finding arclite.
ClosedPublic

Authored by doug.gregor on Jul 20 2022, 2:24 PM.

Details

Summary

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.

Diff Detail

Event Timeline

doug.gregor created this revision.Jul 20 2022, 2:24 PM
Herald added a project: Restricted Project. · View Herald TranscriptJul 20 2022, 2:24 PM
doug.gregor requested review of this revision.Jul 20 2022, 2:24 PM
keith accepted this revision.Jul 20 2022, 3:25 PM
This revision is now accepted and ready to land.Jul 20 2022, 3:25 PM
This revision was landed with ongoing or failed builds.Jul 20 2022, 4:46 PM
This revision was automatically updated to reflect the committed changes.