From: Sylvestre Ledru Date: Wed, 25 Oct 2017 14:25:28 +0000 (+0000) Subject: Add support of the next Debian (Debian buster - version 10) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b3749a3005224bbd2941a3517088a19002d81134;p=clang Add support of the next Debian (Debian buster - version 10) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@316579 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Driver/Distro.h b/include/clang/Driver/Distro.h index f079ceb73e..eeb4f25f34 100644 --- a/include/clang/Driver/Distro.h +++ b/include/clang/Driver/Distro.h @@ -32,6 +32,7 @@ public: DebianWheezy, DebianJessie, DebianStretch, + DebianBuster, Exherbo, RHEL5, RHEL6, @@ -108,7 +109,7 @@ public: } bool IsDebian() const { - return DistroVal >= DebianLenny && DistroVal <= DebianStretch; + return DistroVal >= DebianLenny && DistroVal <= DebianBuster; } bool IsUbuntu() const { diff --git a/lib/Driver/Distro.cpp b/lib/Driver/Distro.cpp index 437641b23d..9a0b854e32 100644 --- a/lib/Driver/Distro.cpp +++ b/lib/Driver/Distro.cpp @@ -89,6 +89,8 @@ static Distro::DistroType DetectDistro(vfs::FileSystem &VFS) { return Distro::DebianJessie; case 9: return Distro::DebianStretch; + case 10: + return Distro::DebianBuster; default: return Distro::UnknownDistro; }