mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-07-31 22:41:35 +00:00
Actually add patch
This commit is contained in:
parent
4bbc91cc38
commit
f7edc8a190
38
debian/patches/ubuntu-releases.patch
vendored
Normal file
38
debian/patches/ubuntu-releases.patch
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
Description: Update the list of Ubuntu release names
|
||||
Forwarded: no
|
||||
Author: Graham Inggs <ginggs@debian.org>
|
||||
Last-Update: 2023-04-29
|
||||
|
||||
Index: llvm-toolchain-16-16.0.5/clang/include/clang/Driver/Distro.h
|
||||
===================================================================
|
||||
--- llvm-toolchain-16-16.0.5.orig/clang/include/clang/Driver/Distro.h
|
||||
+++ llvm-toolchain-16-16.0.5/clang/include/clang/Driver/Distro.h
|
||||
@@ -77,6 +77,7 @@
|
||||
UbuntuJammy,
|
||||
UbuntuKinetic,
|
||||
UbuntuLunar,
|
||||
+ UbuntuMantic,
|
||||
UnknownDistro
|
||||
};
|
||||
|
||||
@@ -128,7 +129,7 @@
|
||||
}
|
||||
|
||||
bool IsUbuntu() const {
|
||||
- return DistroVal >= UbuntuHardy && DistroVal <= UbuntuLunar;
|
||||
+ return DistroVal >= UbuntuHardy && DistroVal <= UbuntuMantic;
|
||||
}
|
||||
|
||||
bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
|
||||
Index: llvm-toolchain-16-16.0.5/clang/lib/Driver/Distro.cpp
|
||||
===================================================================
|
||||
--- llvm-toolchain-16-16.0.5.orig/clang/lib/Driver/Distro.cpp
|
||||
+++ llvm-toolchain-16-16.0.5/clang/lib/Driver/Distro.cpp
|
||||
@@ -93,6 +93,7 @@
|
||||
.Case("jammy", Distro::UbuntuJammy)
|
||||
.Case("kinetic", Distro::UbuntuKinetic)
|
||||
.Case("lunar", Distro::UbuntuLunar)
|
||||
+ .Case("mantic", Distro::UbuntuMantic)
|
||||
.Default(Distro::UnknownDistro);
|
||||
return Version;
|
||||
}
|
Loading…
Reference in New Issue
Block a user