SHA256
1
0
forked from pool/llvm
llvm/clang-resourcedirs.patch
Ismail Dönmez 5ee9c90c79 - Update to version 3.7.0
* No changelog upstream

- Update to version 3.7.0
  * See http://llvm.org/releases/3.7.0/docs/ReleaseNotes.html
- Merge aarch64-suse-support.patch into arm_suse_support.diff
- Refresh arm_suse_support.diff, llvm-fix-find-gcc5-install.patch
- Remove llvm-fix-parsearmarch.patch, upstream.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm?expand=0&rev=419
2015-09-03 09:44:07 +00:00

14 lines
533 B
Diff

Index: cfe-3.7.0.src/lib/Driver/Driver.cpp
===================================================================
--- cfe-3.7.0.src/lib/Driver/Driver.cpp
+++ cfe-3.7.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 {