This is an archive of the discontinued LLVM Phabricator instance.

[Driver] Update Fuchsia driver path handling
ClosedPublic

Authored by phosek on Apr 27 2017, 12:21 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

phosek created this revision.Apr 27 2017, 12:21 PM
phosek edited the summary of this revision. (Show Details)
mcgrathr edited edge metadata.May 2 2017, 2:28 PM

Perhaps use llvm::sys::path::parent_path instead of explicit "..".
Perhaps put the getDriver.Dir() + .. + getTriple().str() logic into a shared subroutine.

Use default rather that CST_Libstdcxx in the switches on GetCXXStdlibType.

This revision is now accepted and ready to land.May 3 2017, 11:39 AM
phosek updated this revision to Diff 102271.Jun 12 2017, 5:55 PM
phosek updated this revision to Diff 106275.Jul 12 2017, 12:13 PM
This revision was automatically updated to reflect the committed changes.