Skip to content

Commit 0d21863

Browse files
committed
[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
1 parent e8402d5 commit 0d21863

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

clang/lib/Driver/ToolChains/Linux.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ std::string Linux::getMultiarchTriple(const Driver &D,
124124
return "powerpc64-linux-gnu";
125125
case llvm::Triple::ppc64le:
126126
return "powerpc64le-linux-gnu";
127+
case llvm::Triple::riscv64:
128+
return "riscv64-linux-gnu";
127129
case llvm::Triple::sparc:
128130
return "sparc-linux-gnu";
129131
case llvm::Triple::sparcv9:

0 commit comments

Comments
 (0)