Add support for Ubuntu groovy

This commit is contained in:
Gianfranco Costamagna 2020-05-09 14:57:06 +02:00
parent 8c0d330644
commit 86149d59c2
2 changed files with 30 additions and 0 deletions

View File

@ -146,3 +146,4 @@ try-to-fix-polly-link.patch
0001-systemz-allow-configuring-default-SYSTEMZ_DEFAULT_AR.patch
D76596.diff
ubuntu-groovy.diff

29
debian/patches/ubuntu-groovy.diff vendored Normal file
View 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;