1 |
eulisse |
1.1 |
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
|
2 |
|
|
index dc35a33..cd2ced7 100644
|
3 |
|
|
--- a/lib/Driver/ToolChains.cpp
|
4 |
|
|
+++ b/lib/Driver/ToolChains.cpp
|
5 |
|
|
@@ -1531,6 +1531,8 @@ Linux::Linux(const HostInfo &Host, const llvm::Triple &Triple)
|
6 |
|
|
Paths.push_back(Base + "/../../..");
|
7 |
|
|
if (Arch == getArch() && IsUbuntu(Distro))
|
8 |
|
|
Paths.push_back("/usr/lib/" + GccTriple);
|
9 |
|
|
+ // Hack to get llvm find the correct gcc runtime. Only works on 64bit slc.
|
10 |
|
|
+ Paths.push_back(getenv("COMPILER_RUNTIME_OBJECTS"));
|
11 |
|
|
}
|
12 |
|
|
|
13 |
|
|
bool Linux::HasNativeLLVMSupport() const {
|