2014-09-04 18:28:42 +02:00
|
|
|
Index: cfe-3.5.0.src/lib/Driver/Driver.cpp
|
2014-04-03 13:59:56 +02:00
|
|
|
===================================================================
|
2014-09-04 18:28:42 +02:00
|
|
|
--- cfe-3.5.0.src/lib/Driver/Driver.cpp
|
|
|
|
+++ cfe-3.5.0.src/lib/Driver/Driver.cpp
|
2014-04-03 13:59:56 +02:00
|
|
|
@@ -66,11 +66,11 @@ Driver::Driver(StringRef ClangExecutable
|
|
|
|
|
|
|
|
// Compute the path to the resource directory.
|
|
|
|
StringRef ClangResourceDir(CLANG_RESOURCE_DIR);
|
|
|
|
- SmallString<128> P(Dir);
|
|
|
|
+ SmallString<128> P((Dir != "") ? Dir : "/usr/bin/");
|
|
|
|
if (ClangResourceDir != "")
|
|
|
|
llvm::sys::path::append(P, ClangResourceDir);
|
|
|
|
else
|
|
|
|
- llvm::sys::path::append(P, "..", "lib", "clang", CLANG_VERSION_STRING);
|
|
|
|
+ llvm::sys::path::append(P, "..", "LLVM_LIBDIR", "clang", CLANG_VERSION_STRING);
|
|
|
|
ResourceDir = P.str();
|
|
|
|
}
|
|
|
|
|