diff options
author | Sylvestre Ledru <sylvestre@debian.org> | 2019-04-19 13:43:28 +0000 |
---|---|---|
committer | Sylvestre Ledru <sylvestre@debian.org> | 2019-04-19 13:43:28 +0000 |
commit | 454014199ddfd3665936184b74ea876fae8fc978 (patch) | |
tree | e9323f497bded41fb529a96023504de05ad29d4d | |
parent | e579800b8415195f8f7f005e6f7a610efee6b151 (diff) | |
download | bcm5719-llvm-454014199ddfd3665936184b74ea876fae8fc978.tar.gz bcm5719-llvm-454014199ddfd3665936184b74ea876fae8fc978.zip |
Add support of the next Ubuntu (Ubuntu 19.10 - Eoan EANIMAL)
llvm-svn: 358756
-rw-r--r-- | clang/include/clang/Driver/Distro.h | 3 | ||||
-rw-r--r-- | clang/lib/Driver/Distro.cpp | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h index d9a31f1688c..30373d107fe 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/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/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp index bf2564ab805..737f172a06e 100644 --- a/clang/lib/Driver/Distro.cpp +++ b/clang/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; |