This is an archive of the discontinued LLVM Phabricator instance.

Reland "[Driver] Update Fuchsia driver path handling"
ClosedPublic

Authored by phosek on Jul 12 2017, 2:15 PM.

Details

Summary

This is a reland of D32613 which fixes the test paths to work on Windows.

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.Jul 12 2017, 2:15 PM
phosek edited the summary of this revision. (Show Details)

I have fixed the test to also handle Windows paths properly which was causing a build breakage.

phosek edited the summary of this revision. (Show Details)Jul 12 2017, 2:25 PM
jroelofs accepted this revision.Jul 12 2017, 2:39 PM
jroelofs added a subscriber: jroelofs.
jroelofs added inline comments.
lib/Driver/ToolChains/Fuchsia.cpp
134 ↗(On Diff #106304)

normalizeTriple maybe? Since it strips out the vendor string, among other things.

This revision is now accepted and ready to land.Jul 12 2017, 2:39 PM
phosek updated this revision to Diff 106323.Jul 12 2017, 3:01 PM
phosek marked an inline comment as done.
This revision was automatically updated to reflect the committed changes.