llvm15/llvm-fix-find-gcc5-install.patch
Aaron Puchert 5435029fbe - Add patches, to actually fix the build with Python 3.13:
* libcxx-use-shlex-quote.patch
  * libcxx-remove-unused-imports.patch
  * lldb-support-python-3.13.patch
  * use-shlex-quote.patch

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/llvm15?expand=0&rev=44
2025-03-06 23:47:08 +00:00

15 lines
613 B
Diff

Index: cfe-7.0.0rc1.src/lib/Driver/ToolChains/Gnu.cpp
===================================================================
--- cfe-7.0.0rc1.src.orig/lib/Driver/ToolChains/Gnu.cpp
+++ cfe-7.0.0rc1.src/lib/Driver/ToolChains/Gnu.cpp
@@ -1596,7 +1596,8 @@ Generic_GCC::GCCVersion Generic_GCC::GCC
MinorStr = MinorStr.slice(0, EndNumber);
}
}
- if (MinorStr.getAsInteger(10, GoodVersion.Minor) || GoodVersion.Minor < 0)
+ if (!MinorStr.str().empty() &&
+ (MinorStr.getAsInteger(10, GoodVersion.Minor) || GoodVersion.Minor < 0))
return BadVersion;
GoodVersion.MinorStr = MinorStr.str();