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-Tag: llvmorg-6.0.0-rc1~4918 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a3436bb21a26799610005f1956ec0e6ce36789b0;p=platform%2Fupstream%2Fllvm.git Add support of the next Debian (Debian buster - version 10) llvm-svn: 316579 --- diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h index f079ceb..eeb4f25 100644 --- a/clang/include/clang/Driver/Distro.h +++ b/clang/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/clang/lib/Driver/Distro.cpp b/clang/lib/Driver/Distro.cpp index 437641b..9a0b854 100644 --- a/clang/lib/Driver/Distro.cpp +++ b/clang/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; }