[Driver] Update Fuchsia driver path handling
authorPetr Hosek <phosek@chromium.org>
Wed, 12 Jul 2017 19:15:51 +0000 (19:15 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 12 Jul 2017 19:15:51 +0000 (19:15 +0000)
commit8847dcbd6b2c888bd9ea2404975c310298224507
tree2657d4ae76262788617ddf6c8c7cbd957074d7f0
parent03b5baf48030533f9120429bdb3fba0401381f63
[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/D32613

llvm-svn: 307830
clang/lib/Driver/ToolChains/Fuchsia.cpp
clang/lib/Driver/ToolChains/Fuchsia.h
clang/test/Driver/fuchsia.cpp