[PATCH] D126672: [Driver] Add multiarch path for RISC-V

Jonas Hahnfeld via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon May 30 12:04:09 PDT 2022


Hahnfeld created this revision.
Hahnfeld added a reviewer: sylvestre.ledru.
Herald added subscribers: sunshaoce, VincentWu, luke957, vkmr, luismarques, sameer.abuasal, s.egerton, Jim, PkmX, rogfer01, shiva0217, kito-cheng, simoncook, arichardson.
Herald added a project: All.
Hahnfeld requested review of this revision.
Herald added subscribers: cfe-commits, pcwang-thead, MaskRay.
Herald added a project: clang.

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


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D126672

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


Index: clang/lib/Driver/ToolChains/Linux.cpp
===================================================================
--- clang/lib/Driver/ToolChains/Linux.cpp
+++ clang/lib/Driver/ToolChains/Linux.cpp
@@ -124,6 +124,8 @@
     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:


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D126672.432968.patch
Type: text/x-patch
Size: 475 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220530/775f94ec/attachment.bin>


More information about the cfe-commits mailing list