f49d2e187c
- Update to llvm 3.8.0 * See http://llvm.org/releases/3.8.0/docs/ReleaseNotes.html and http://llvm.org/releases/3.8.0/tools/clang/docs/ReleaseNotes.html - Fold lldb build into llvm and disable python support - Drop clang-disable-ada-extension.patch, libcxxabi-exceptions.patch and cmake-host-triple.patch - Add revert-cmake-soname.patch to fix soname handling OBS-URL: https://build.opensuse.org/request/show/368685 OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=430
14 lines
533 B
Diff
14 lines
533 B
Diff
Index: cfe-3.8.0.src/lib/Driver/Driver.cpp
|
|
===================================================================
|
|
--- cfe-3.8.0.src/lib/Driver/Driver.cpp
|
|
+++ cfe-3.8.0.src/lib/Driver/Driver.cpp
|
|
@@ -64,7 +64,7 @@ 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 {
|