This is an archive of the discontinued LLVM Phabricator instance.

[LLD] [MinGW] Ignore the sysroot parameter
ClosedPublic

Authored by mstorsjo on Sep 11 2017, 1:37 PM.

Details

Summary

If the sysroot parameter is passed to the clang frontend, clang already uses it to find libraries and adds -L options for it, but also passes it on to the linker. Therefore we can get pretty far by just ignoring it altogether.

Diff Detail

Repository
rL LLVM

Event Timeline

mstorsjo created this revision.Sep 11 2017, 1:37 PM
ruiu edited edge metadata.Sep 11 2017, 1:38 PM

LGTM

MinGW/Options.td
36 ↗(On Diff #114673)

Sort asciibetically.

ruiu accepted this revision.Sep 11 2017, 1:38 PM
This revision is now accepted and ready to land.Sep 11 2017, 1:38 PM
This revision was automatically updated to reflect the committed changes.