summaryrefslogtreecommitdiff
path: root/debian/patches/ubuntu-eoan-distro.patch
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2019-12-02 17:06:08 +0300
committerIgor Pashev <pashev.igor@gmail.com>2019-12-02 17:06:08 +0300
commit18583eaa2c6fa769ce80605422fa10a60d353af7 (patch)
tree4b6730afc2006e86ae8b91c8c4cf52b313b5c188 /debian/patches/ubuntu-eoan-distro.patch
downloadllvm-toolchain-8-18583eaa2c6fa769ce80605422fa10a60d353af7.tar.gz
Import llvm-toolchain-8 (1:8.0.1-4)debian/8.0.1-4debian
Diffstat (limited to 'debian/patches/ubuntu-eoan-distro.patch')
-rw-r--r--debian/patches/ubuntu-eoan-distro.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/debian/patches/ubuntu-eoan-distro.patch b/debian/patches/ubuntu-eoan-distro.patch
new file mode 100644
index 0000000..1c44508
--- /dev/null
+++ b/debian/patches/ubuntu-eoan-distro.patch
@@ -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;