This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Move LIBRARY_PATH before user inputs
AbandonedPublic

Authored by MaskRay on Aug 7 2019, 8:15 AM.

Details

Summary

Fixes PR16786

Currently, library paths specified by LIBRARY_PATH are placed after inputs: inputs LIBRARY_PATH stdlib
In gcc, the order is: inputs LIBRARY_PATH stdlib if not cross compiling.
(On Darwin targets, isCrossCompiling() always returns false.)

This patch changes the behavior to match gcc.

Diff Detail

Event Timeline

MaskRay created this revision.Aug 7 2019, 8:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 7 2019, 8:15 AM
Herald added a subscriber: cfe-commits. · View Herald Transcript
MaskRay abandoned this revision.Aug 7 2019, 8:19 AM

Sorry. Accidentally created a duplicate one by my arc diff..