d908d9fcff
* Fix a regression from the 18.1.6 release, which could result in compiler crashes in the PPCMergeStringPool pass when compiling for PowerPC targets. * Fixes clang-format regressions (since 18.1.1) on breaking before a stream insertion operator (<<) when both operands are string literals. * Fixes a clang-format regression (since 17.0.6) on formatting goto labels in macro definitions. - Rebase llvm-do-not-install-static-libraries.patch. OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm18?expand=0&rev=17
14 lines
587 B
Diff
14 lines
587 B
Diff
Index: cfe-6.0.0rc1.src/lib/Driver/Driver.cpp
|
|
===================================================================
|
|
--- cfe-6.0.0rc1.src.orig/lib/Driver/Driver.cpp
|
|
+++ cfe-6.0.0rc1.src/lib/Driver/Driver.cpp
|
|
@@ -115,7 +115,7 @@ Driver::Driver(StringRef ClangExecutable
|
|
// Dir is bin/ or lib/, depending on where BinaryPath is.
|
|
std::string Dir = std::string(llvm::sys::path::parent_path(BinaryPath));
|
|
|
|
- SmallString<128> P(Dir);
|
|
+ SmallString<128> P((Dir != "") ? Dir : "/usr/bin/");
|
|
if (CustomResourceDir != "") {
|
|
llvm::sys::path::append(P, CustomResourceDir);
|
|
} else {
|