mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-06-28 03:04:44 +00:00
Add support for Ubuntu kinetic
This commit is contained in:
parent
b8e0a22e40
commit
eee8322010
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -150,3 +150,4 @@ wasm-ld-path.diff
|
|||||||
python3-scan-build.py
|
python3-scan-build.py
|
||||||
revert-update-doc.diff
|
revert-update-doc.diff
|
||||||
fix-typo.diff
|
fix-typo.diff
|
||||||
|
ubuntu-kinetic.patch
|
||||||
|
38
debian/patches/ubuntu-kinetic.patch
vendored
Normal file
38
debian/patches/ubuntu-kinetic.patch
vendored
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
Description: Update the list of Ubuntu release names
|
||||||
|
Author: Steve Langasek <steve.langasek@ubuntu.com>
|
||||||
|
Last-Update: 2022-05-03
|
||||||
|
Forwarded: no
|
||||||
|
|
||||||
|
Index: llvm-toolchain-14-14.0.0/clang/include/clang/Driver/Distro.h
|
||||||
|
===================================================================
|
||||||
|
--- llvm-toolchain-14-14.0.0.orig/clang/include/clang/Driver/Distro.h
|
||||||
|
+++ llvm-toolchain-14-14.0.0/clang/include/clang/Driver/Distro.h
|
||||||
|
@@ -74,6 +74,7 @@
|
||||||
|
UbuntuHirsute,
|
||||||
|
UbuntuImpish,
|
||||||
|
UbuntuJammy,
|
||||||
|
+ UbuntuKinetic,
|
||||||
|
UnknownDistro
|
||||||
|
};
|
||||||
|
|
||||||
|
@@ -125,7 +126,7 @@
|
||||||
|
}
|
||||||
|
|
||||||
|
bool IsUbuntu() const {
|
||||||
|
- return DistroVal >= UbuntuHardy && DistroVal <= UbuntuJammy;
|
||||||
|
+ return DistroVal >= UbuntuHardy && DistroVal <= UbuntuKinetic;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool IsAlpineLinux() const { return DistroVal == AlpineLinux; }
|
||||||
|
Index: llvm-toolchain-14-14.0.0/clang/lib/Driver/Distro.cpp
|
||||||
|
===================================================================
|
||||||
|
--- llvm-toolchain-14-14.0.0.orig/clang/lib/Driver/Distro.cpp
|
||||||
|
+++ llvm-toolchain-14-14.0.0/clang/lib/Driver/Distro.cpp
|
||||||
|
@@ -91,6 +91,7 @@
|
||||||
|
.Case("hirsute", Distro::UbuntuHirsute)
|
||||||
|
.Case("impish", Distro::UbuntuImpish)
|
||||||
|
.Case("jammy", Distro::UbuntuJammy)
|
||||||
|
+ .Case("kinetic", Distro::UbuntuKinetic)
|
||||||
|
.Default(Distro::UnknownDistro);
|
||||||
|
return Version;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user