Index: lib/Driver/ToolChains.cpp |
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp |
index ec67c5d36108d0e7337fa6722861f28a5c399bb6..81a2f8598cc42d104d6a1e890237ab092c4afac4 100644 |
--- a/lib/Driver/ToolChains.cpp |
+++ b/lib/Driver/ToolChains.cpp |
@@ -2529,6 +2529,15 @@ ToolChain::CXXStdlibType NaCl_TC::GetCXXStdlibType(const ArgList &Args) const { |
return ToolChain::CST_Libcxx; |
} |
+std::string NaCl_TC::ComputeEffectiveClangTriple( |
+ const ArgList &Args, types::ID InputType) const { |
+ llvm::Triple TheTriple(ComputeLLVMTriple(Args, InputType)); |
+ if (TheTriple.getArch() == llvm::Triple::arm && |
+ TheTriple.getEnvironment() == llvm::Triple::UnknownEnvironment) |
+ TheTriple.setEnvironment(llvm::Triple::GNUEABIHF); |
+ return TheTriple.getTriple(); |
+} |
+ |
Tool *NaCl_TC::buildLinker() const { |
return new tools::nacltools::Link(*this); |
} |