From 86149d59c2c9c5e54641eedf14f8b98cd89bc913 Mon Sep 17 00:00:00 2001 From: Gianfranco Costamagna Date: Sat, 9 May 2020 14:57:06 +0200 Subject: [PATCH] Add support for Ubuntu groovy --- debian/patches/series | 1 + debian/patches/ubuntu-groovy.diff | 29 +++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 debian/patches/ubuntu-groovy.diff diff --git a/debian/patches/series b/debian/patches/series index 8fd91729..dcf22b8f 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -146,3 +146,4 @@ try-to-fix-polly-link.patch 0001-systemz-allow-configuring-default-SYSTEMZ_DEFAULT_AR.patch D76596.diff +ubuntu-groovy.diff diff --git a/debian/patches/ubuntu-groovy.diff b/debian/patches/ubuntu-groovy.diff new file mode 100644 index 00000000..800a70a8 --- /dev/null +++ b/debian/patches/ubuntu-groovy.diff @@ -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;