This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Honor -isysroot for Linux targets

Authored by yan12125 on Jul 7 2017, 11:31 AM.

Diff Detail

Event Timeline

yan12125 created this revision.Jul 7 2017, 11:31 AM
rsmith added a subscriber: rsmith.Jul 7 2017, 11:48 AM

This needs tests; perhaps extend test/Driver/linux-header-search.cpp for this.


Can you instead return computeSysRoot() here and remove the fallback from BuildCompilation? That way, we won't perform the checks in defaultSysRoot twice if neither flag is specified.

rsmith set the repository for this revision to rL LLVM.
rsmith edited subscribers, added: cfe-commits; removed: rsmith.
yan12125 updated this revision to Diff 107777.Jul 22 2017, 12:37 AM

Add a test and fix repeated call to defaultSysRoot()

Bump. Anything missing on this patch?

yan12125 abandoned this revision.Feb 18 2021, 5:39 AM

Seems the issue has been fixed in