2015-03-02 11:18:08 +01:00
|
|
|
Index: cfe-3.6.0.src/lib/Driver/Driver.cpp
|
2014-04-03 13:59:56 +02:00
|
|
|
===================================================================
|
2015-03-02 11:18:08 +01:00
|
|
|
--- cfe-3.6.0.src/lib/Driver/Driver.cpp
|
|
|
|
+++ cfe-3.6.0.src/lib/Driver/Driver.cpp
|
|
|
|
@@ -64,7 +64,7 @@ Driver::Driver(StringRef ClangExecutable
|
2014-04-03 13:59:56 +02:00
|
|
|
|
|
|
|
// Compute the path to the resource directory.
|
|
|
|
StringRef ClangResourceDir(CLANG_RESOURCE_DIR);
|
|
|
|
- SmallString<128> P(Dir);
|
2015-03-02 11:18:08 +01:00
|
|
|
+ SmallString<128> P((Dir != "") ? Dir : "/opt/clang/bin/");
|
|
|
|
if (ClangResourceDir != "") {
|
2014-04-03 13:59:56 +02:00
|
|
|
llvm::sys::path::append(P, ClangResourceDir);
|
2015-03-02 11:18:08 +01:00
|
|
|
} else {
|