Author: Sylvestre Ledru Date: 2020-05-19T08:30:25+02:00 New Revision: dbb034947cc16d26164be1e78d95249d60738dc6
URL: https://github.com/llvm/llvm-project/commit/dbb034947cc16d26164be1e78d95249d60738dc6 DIFF: https://github.com/llvm/llvm-project/commit/dbb034947cc16d26164be1e78d95249d60738dc6.diff LOG: Add support of the next Ubuntu (Ubuntu 20.10 - Groovy Gorilla) Added: Modified: clang/include/clang/Driver/Distro.h clang/lib/Driver/Distro.cpp Removed: ################################################################################ diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h index d382cf77a8b2..038d4ce75d80 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/include/clang/Driver/Distro.h @@ -67,6 +67,7 @@ class Distro { UbuntuDisco, UbuntuEoan, UbuntuFocal, + UbuntuGroovy, UnknownDistro }; @@ -120,7 +121,7 @@ class Distro { } bool IsUbuntu() const { - return DistroVal >= UbuntuHardy && DistroVal <= UbuntuFocal; + return DistroVal >= UbuntuHardy && DistroVal <= UbuntuGroovy; } bool IsAlpineLinux() const { diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp index acfde7d8bd0b..4d58ad1ae78c 100644 --- a/clang/lib/Driver/Distro.cpp +++ b/clang/lib/Driver/Distro.cpp @@ -71,6 +71,7 @@ static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS, .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; _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits