Page MenuHomePhabricator

[driver][riscv] Support riscv64-linux-gnu multiarch paths
Needs RevisionPublic

Authored by aurel32 on Aug 3 2019, 1:50 AM.

Details

Reviewers
asb
jrtc27
Summary

This change adds support for the riscv64-linux-gnu multiarch:

  • library path in getMultiarchTriple
  • include path in AddClangSystemIncludeArgs

With this change LLVM is able to find libraries and include files on a debian riscv64 system.

Diff Detail

Repository
rC Clang

Event Timeline

aurel32 created this revision.Aug 3 2019, 1:50 AM
asb requested changes to this revision.Aug 6 2019, 7:37 AM

Many thanks for the patch. Could you please add some tests for this behaviour? I imagine you'll want to add a new directory in test/Driver/Inputs with a Debian tree skeleton. See D63497 for a relevant example.

Also, when submitting patches please try to generate the patch with -U99999 (see here) so we can see full context in the Phabricator Web UI.

This revision now requires changes to proceed.Aug 6 2019, 7:37 AM