[clang] 0d21863 - [Driver] Add multiarch path for RISC-V

Jonas Hahnfeld via cfe-commits cfe-commits at lists.llvm.org
Fri Jun 3 00:10:55 PDT 2022


Author: Jonas Hahnfeld
Date: 2022-06-03T09:10:34+02:00
New Revision: 0d2186373f73995cfcc45f445024fbc9841c99d6

URL: https://github.com/llvm/llvm-project/commit/0d2186373f73995cfcc45f445024fbc9841c99d6
DIFF: https://github.com/llvm/llvm-project/commit/0d2186373f73995cfcc45f445024fbc9841c99d6.diff

LOG: [Driver] Add multiarch path for RISC-V

This is required to find headers on the Debian port for RISC-V.

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

Added: 
    

Modified: 
    clang/lib/Driver/ToolChains/Linux.cpp

Removed: 
    


################################################################################
diff  --git a/clang/lib/Driver/ToolChains/Linux.cpp b/clang/lib/Driver/ToolChains/Linux.cpp
index 43b2bf06e8b4..4309b1060346 100644
--- a/clang/lib/Driver/ToolChains/Linux.cpp
+++ b/clang/lib/Driver/ToolChains/Linux.cpp
@@ -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:


        


More information about the cfe-commits mailing list