[Driver] Set default sysroot for Fuchsia if none is specified
Needs ReviewPublic

Authored by phosek on Fri, Jan 12, 4:18 PM.

Details

Reviewers
mcgrathr
Summary

When sysroot isn't explicitly set, try to use the default location which is <driver path>/../<triple>

Diff Detail

Repository
rC Clang
phosek created this revision.Fri, Jan 12, 4:18 PM
mcgrathr added inline comments.Fri, Jan 12, 4:58 PM
lib/Driver/ToolChains/Fuchsia.cpp
152

The GCC behavior (if --with-sysroot is given to configure) is tooldir/sys-root, not tooldir itself.