|
@@ -234,9 +234,11 @@ Linux::Linux(const Driver &D, const llvm::Triple &Triple, const ArgList &Args)
|
|
// used to target i386.
|
|
// used to target i386.
|
|
// FIXME: This seems unlikely to be Linux-specific.
|
|
// FIXME: This seems unlikely to be Linux-specific.
|
|
ToolChain::path_list &PPaths = getProgramPaths();
|
|
ToolChain::path_list &PPaths = getProgramPaths();
|
|
- PPaths.push_back(Twine(GCCInstallation.getParentLibPath() + "/../" +
|
|
|
|
- GCCInstallation.getTriple().str() + "/bin")
|
|
|
|
- .str());
|
|
|
|
|
|
+ if (GCCInstallation.isValid()) {
|
|
|
|
+ PPaths.push_back(Twine(GCCInstallation.getParentLibPath() + "/../" +
|
|
|
|
+ GCCInstallation.getTriple().str() + "/bin")
|
|
|
|
+ .str());
|
|
|
|
+ }
|
|
|
|
|
|
Distro Distro(D.getVFS());
|
|
Distro Distro(D.getVFS());
|
|
|
|
|