Reland "[Driver] Update Fuchsia driver path handling"
authorPetr Hosek <phosek@chromium.org>
Wed, 12 Jul 2017 22:14:41 +0000 (22:14 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 12 Jul 2017 22:14:41 +0000 (22:14 +0000)
commit48dec96ecc02497042ad46c7371383db981b1482
tree050f3cadec2333956d24a255c958d8d1994a563b
parent2d77c354f16dda7be663553232555b0d61eab112
Reland "[Driver] Update Fuchsia driver path handling"

Several improvements to the Fuchsia driver:

* Search for C++ library headers and libraries in directories that
are part of the toolchain distribution rather than sysroot.

* Use LLVM support utlities to construct paths to make sure the driver
is also usable on Windows for cross-compiling.

* Change the driver to inherit directly from ToolChain rather than
Generic_GCC since we don't need any of the GCC related multilib logic.

Differential Revision: https://reviews.llvm.org/D35328

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@307856 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Driver/ToolChains/Fuchsia.cpp
lib/Driver/ToolChains/Fuchsia.h
test/Driver/fuchsia.c
test/Driver/fuchsia.cpp