Author: Sylvestre Ledru Date: 2019-11-16T12:21:54+01:00 New Revision: 42effc106966d45053abdd4e3d03ecfe256869b5
URL: https://github.com/llvm/llvm-project/commit/42effc106966d45053abdd4e3d03ecfe256869b5 DIFF: https://github.com/llvm/llvm-project/commit/42effc106966d45053abdd4e3d03ecfe256869b5.diff LOG: Add support of the next Ubuntu (Ubuntu 20.04 - Focal Fossa) 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 67dc764fb7d1..da8f819dee96 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/include/clang/Driver/Distro.h @@ -65,6 +65,7 @@ class Distro { UbuntuCosmic, UbuntuDisco, UbuntuEoan, + UbuntuFocal, UnknownDistro }; @@ -118,7 +119,7 @@ class Distro { } bool IsUbuntu() const { - return DistroVal >= UbuntuHardy && DistroVal <= UbuntuEoan; + return DistroVal >= UbuntuHardy && DistroVal <= UbuntuFocal; } bool IsAlpineLinux() const { diff --git a/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp index f2a3074d1e70..92e04108a7e2 100644 --- a/clang/lib/Driver/Distro.cpp +++ b/clang/lib/Driver/Distro.cpp @@ -52,6 +52,7 @@ static Distro::DistroType DetectDistro(llvm::vfs::FileSystem &VFS) { .Case("cosmic", Distro::UbuntuCosmic) .Case("disco", Distro::UbuntuDisco) .Case("eoan", Distro::UbuntuEoan) + .Case("focal", Distro::UbuntuFocal) .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