llvm19/llvm-fix-find-gcc5-install.patch
Aaron Puchert e97a7d3051 - Update to version 19.1.4.
* This release contains bug-fixes for the LLVM 19.1.0 release.
    This release is API and ABI compatible with 19.1.0.
- Rebase llvm-do-not-install-static-libraries.patch.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm19?expand=0&rev=11
2024-11-20 01:21:10 +00:00

14 lines
528 B
Diff

Index: clang-18.1.0rc1.src/lib/Driver/ToolChains/Gnu.cpp
===================================================================
--- clang-18.1.0rc1.src.orig/lib/Driver/ToolChains/Gnu.cpp
+++ clang-18.1.0rc1.src/lib/Driver/ToolChains/Gnu.cpp
@@ -2179,7 +2179,7 @@ Generic_GCC::GCCVersion Generic_GCC::GCC
return GoodVersion;
}
- if (!TryParseNumber(MinorStr, GoodVersion.Minor))
+ if (!MinorStr.str().empty() && !TryParseNumber(MinorStr, GoodVersion.Minor))
return BadVersion;
GoodVersion.MinorStr = MinorStr;