This is an archive of the discontinued LLVM Phabricator instance.

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

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



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

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
cheese added a subscriber: cheese.Apr 12 2022, 10:50 PM
lenary removed a subscriber: lenary.Apr 13 2022, 2:18 AM
rkruppe removed a subscriber: rkruppe.Apr 16 2022, 3:00 AM