Add Ubuntu eoan to supported ubuntu releases

This commit is contained in:
Gianfranco Costamagna 2019-04-21 22:54:57 +02:00
parent d1aa2c1392
commit 408379a6c0
3 changed files with 38 additions and 0 deletions

4
debian/changelog vendored
View File

@ -1,7 +1,11 @@
llvm-toolchain-8 (1:8.0.1-1~svn) UNRELEASED; urgency=medium
[ Sylvestre Ledru ]
* New upstream release (prepare)
[ Gianfranco Costamagna ]
* Add Ubuntu eoan to supported ubuntu distro
-- Sylvestre Ledru <sylvestre@debian.org> Sun, 07 Apr 2019 13:59:46 +0200
llvm-toolchain-8 (1:8-3) unstable; urgency=medium

View File

@ -133,3 +133,4 @@ mips64el-fix.diff
OpenCL-Change-type-of-block-pointer-for-OpenCL.patch
OpenCL-Simplify-LLVM-IR-generated-for-OpenCL-blocks.patch
OpenCL-Fix-assertion-due-to-blocks.patch
ubuntu-eoan-distro.patch

33
debian/patches/ubuntu-eoan-distro.patch vendored Normal file
View File

@ -0,0 +1,33 @@
Description: Add uoan as supported architecture
Author: Gianfranco Costamagna <locutusofborg@debian.org>
Last-Update: 2019-04-21
--- llvm-toolchain-8-8.orig/clang/include/clang/Driver/Distro.h
+++ llvm-toolchain-8-8/clang/include/clang/Driver/Distro.h
@@ -64,6 +64,7 @@ public:
UbuntuBionic,
UbuntuCosmic,
UbuntuDisco,
+ UbuntuEoan,
UnknownDistro
};
@@ -117,7 +118,7 @@ public:
}
bool IsUbuntu() const {
- return DistroVal >= UbuntuHardy && DistroVal <= UbuntuDisco;
+ return DistroVal >= UbuntuHardy && DistroVal <= UbuntuEoan;
}
bool IsAlpineLinux() const {
--- llvm-toolchain-8-8.orig/clang/lib/Driver/Distro.cpp
+++ llvm-toolchain-8-8/clang/lib/Driver/Distro.cpp
@@ -52,6 +52,7 @@ static Distro::DistroType DetectDistro(l
.Case("bionic", Distro::UbuntuBionic)
.Case("cosmic", Distro::UbuntuCosmic)
.Case("disco", Distro::UbuntuDisco)
+ .Case("eoan", Distro::UbuntuEoan)
.Default(Distro::UnknownDistro);
if (Version != Distro::UnknownDistro)
return Version;