This is an archive of the discontinued LLVM Phabricator instance.

[clang] Make --ld-path= work with -fuse-ld=lld
ClosedPublic

Authored by thakis on Sep 16 2022, 12:30 PM.

Details

Summary

This allows using --ld-path= to set a custom linker path, while
still informing clang that the binary at that path is an lld built
at the same revision as clang, so that clang can make assumptions
about the flags it supports, its output format, etc.

This currently only has an observable effect on Darwin.

Diff Detail

Event Timeline

thakis created this revision.Sep 16 2022, 12:30 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 16 2022, 12:30 PM
Herald added a subscriber: StephenFan. · View Herald Transcript
MaskRay accepted this revision.Sep 16 2022, 1:17 PM

Looks great!

This revision is now accepted and ready to land.Sep 16 2022, 1:17 PM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptSep 23 2022, 6:04 AM