[Driver] Add multiarch path for RISC-V
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Mon, 30 May 2022 18:54:21 +0000 (20:54 +0200)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Fri, 3 Jun 2022 07:10:34 +0000 (09:10 +0200)
This is required to find headers on the Debian port for RISC-V.

Differential Revision: https://reviews.llvm.org/D126672

clang/lib/Driver/ToolChains/Linux.cpp

index 43b2bf0..4309b10 100644 (file)
@@ -124,6 +124,8 @@ std::string Linux::getMultiarchTriple(const Driver &D,
     return "powerpc64-linux-gnu";
   case llvm::Triple::ppc64le:
     return "powerpc64le-linux-gnu";
+  case llvm::Triple::riscv64:
+    return "riscv64-linux-gnu";
   case llvm::Triple::sparc:
     return "sparc-linux-gnu";
   case llvm::Triple::sparcv9: