From: Sylvestre Ledru Date: Fri, 19 Apr 2019 13:43:28 +0000 (+0000) Subject: Add support of the next Ubuntu (Ubuntu 19.10 - Eoan EANIMAL) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=6ad5cdaf01f864e1aa3b1103d07e95aeede11604;p=clang Add support of the next Ubuntu (Ubuntu 19.10 - Eoan EANIMAL) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@358756 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/Distro.h b/include/clang/Driver/Distro.h index d9a31f1688..30373d107f 100644 --- a/include/clang/Driver/Distro.h +++ b/include/clang/Driver/Distro.h @@ -63,6 +63,7 @@ public: UbuntuBionic, UbuntuCosmic, UbuntuDisco, + UbuntuEoan, UnknownDistro }; @@ -116,7 +117,7 @@ public: } bool IsUbuntu() const { - return DistroVal >= UbuntuHardy && DistroVal <= UbuntuDisco; + return DistroVal >= UbuntuHardy && DistroVal <= UbuntuEoan; } bool IsAlpineLinux() const { diff --git a/lib/Driver/Distro.cpp b/lib/Driver/Distro.cpp index bf2564ab80..737f172a06 100644 --- a/lib/Driver/Distro.cpp +++ b/lib/Driver/Distro.cpp @@ -51,6 +51,7 @@ static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) { .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;