Index: lib/Driver/ToolChains.cpp |
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp |
index 8aa80c62ffda5e83ce776f2e187adf651b7dfa76..ebd4d4374b2ec37162d5eae034e2b2db91353559 100644 |
--- a/lib/Driver/ToolChains.cpp |
+++ b/lib/Driver/ToolChains.cpp |
@@ -2356,6 +2356,13 @@ NaCl_TC::NaCl_TC(const Driver &D, const llvm::Triple &Triple, |
file_paths.push_back(ToolPath + "arm-nacl"); |
break; |
} |
+ case llvm::Triple::mipsel: { |
+ file_paths.push_back(FilePath + "mipsel-nacl/lib"); |
+ file_paths.push_back(FilePath + "mipsel-nacl/usr/lib"); |
+ prog_paths.push_back(ProgPath + "bin"); |
+ file_paths.push_back(ToolPath + "mipsel-nacl"); |
+ break; |
+ } |
default: |
break; |
} |
@@ -2445,6 +2452,10 @@ void NaCl_TC::AddClangCXXStdlibIncludeArgs(const ArgList &DriverArgs, |
SmallString<128> P(D.Dir + "/../"); |
llvm::sys::path::append(P, "x86_64-nacl/include/c++/v1"); |
addSystemInclude(DriverArgs, CC1Args, P.str()); |
+ } else if (getTriple().getArch() == llvm::Triple::mipsel) { |
+ SmallString<128> P(D.Dir + "/../"); |
+ llvm::sys::path::append(P, "mipsel-nacl/include/c++/v1"); |
+ addSystemInclude(DriverArgs, CC1Args, P.str()); |
} |
} |