clang-riscv64-multiarch

===================================================================

Gbp-Pq: Name clang-riscv64-multiarch.diff
This commit is contained in:
LLVM Packaging Team 2022-06-27 14:58:58 +08:00 committed by Lu zhiping
parent 4fcc069d78
commit 82cf5dc56c
1 changed files with 9 additions and 0 deletions

View File

@ -151,6 +151,10 @@ static std::string getMultiarchTriple(const Driver &D,
if (D.getVFS().exists(SysRoot + "/lib/powerpc64le-linux-gnu"))
return "powerpc64le-linux-gnu";
break;
case llvm::Triple::riscv64:
if (D.getVFS().exists(SysRoot + "/lib/riscv64-linux-gnu"))
return "riscv64-linux-gnu";
break;
case llvm::Triple::sparc:
if (D.getVFS().exists(SysRoot + "/lib/sparc-linux-gnu"))
return "sparc-linux-gnu";
@ -760,6 +764,8 @@ void Linux::AddClangSystemIncludeArgs(const ArgList &DriverArgs,
"/usr/include/powerpc64-linux-gnu"};
const StringRef PPC64LEMultiarchIncludeDirs[] = {
"/usr/include/powerpc64le-linux-gnu"};
const StringRef RISCV64MultiarchIncludeDirs[] = {
"/usr/include/riscv64-linux-gnu"};
const StringRef SparcMultiarchIncludeDirs[] = {
"/usr/include/sparc-linux-gnu"};
const StringRef Sparc64MultiarchIncludeDirs[] = {
@ -835,6 +841,9 @@ void Linux::AddClangSystemIncludeArgs(const ArgList &DriverArgs,
case llvm::Triple::ppc64le:
MultiarchIncludeDirs = PPC64LEMultiarchIncludeDirs;
break;
case llvm::Triple::riscv64:
MultiarchIncludeDirs = RISCV64MultiarchIncludeDirs;
break;
case llvm::Triple::sparc:
MultiarchIncludeDirs = SparcMultiarchIncludeDirs;
break;