mirror of
https://git.proxmox.com/git/llvm-toolchain
synced 2025-10-25 23:12:51 +00:00
Add support for Ubuntu groovy
This commit is contained in:
parent
8c0d330644
commit
86149d59c2
1
debian/patches/series
vendored
1
debian/patches/series
vendored
@ -146,3 +146,4 @@ try-to-fix-polly-link.patch
|
|||||||
0001-systemz-allow-configuring-default-SYSTEMZ_DEFAULT_AR.patch
|
0001-systemz-allow-configuring-default-SYSTEMZ_DEFAULT_AR.patch
|
||||||
|
|
||||||
D76596.diff
|
D76596.diff
|
||||||
|
ubuntu-groovy.diff
|
||||||
|
|||||||
29
debian/patches/ubuntu-groovy.diff
vendored
Normal file
29
debian/patches/ubuntu-groovy.diff
vendored
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
--- a/clang/include/clang/Driver/Distro.h
|
||||||
|
+++ b/clang/include/clang/Driver/Distro.h
|
||||||
|
@@ -67,6 +67,7 @@ public:
|
||||||
|
UbuntuDisco,
|
||||||
|
UbuntuEoan,
|
||||||
|
UbuntuFocal,
|
||||||
|
+ UbuntuGroovy,
|
||||||
|
UnknownDistro
|
||||||
|
};
|
||||||
|
|
||||||
|
@@ -120,7 +121,7 @@ public:
|
||||||
|
}
|
||||||
|
|
||||||
|
bool IsUbuntu() const {
|
||||||
|
- return DistroVal >= UbuntuHardy && DistroVal <= UbuntuFocal;
|
||||||
|
+ return DistroVal >= UbuntuHardy && DistroVal <= UbuntuGroovy;
|
||||||
|
}
|
||||||
|
|
||||||
|
bool IsAlpineLinux() const {
|
||||||
|
--- a/clang/lib/Driver/Distro.cpp
|
||||||
|
+++ b/clang/lib/Driver/Distro.cpp
|
||||||
|
@@ -70,6 +70,7 @@ static Distro::DistroType DetectDistro(l
|
||||||
|
.Case("disco", Distro::UbuntuDisco)
|
||||||
|
.Case("eoan", Distro::UbuntuEoan)
|
||||||
|
.Case("focal", Distro::UbuntuFocal)
|
||||||
|
+ .Case("groovy", Distro::UbuntuGroovy)
|
||||||
|
.Default(Distro::UnknownDistro);
|
||||||
|
if (Version != Distro::UnknownDistro)
|
||||||
|
return Version;
|
||||||
Loading…
Reference in New Issue
Block a user