diff options
| author | 2018-04-06 14:26:03 +0000 | |
|---|---|---|
| committer | 2018-04-06 14:26:03 +0000 | |
| commit | bdabc2f19ffb9e20600dad6e8a300842a7bda50e (patch) | |
| tree | c50e7b2e5449b074651bb82a58517a8ebc4a8cf7 /gnu/llvm/tools/clang/lib/Driver/Distro.cpp | |
| parent | Print a 'p' flag for file descriptors that were opened after pledge(2). (diff) | |
| download | wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.tar.xz wireguard-openbsd-bdabc2f19ffb9e20600dad6e8a300842a7bda50e.zip | |
Import LLVM 6.0.1 release including clang, lld and lldb.
"where is the kaboom?" deraadt@
Diffstat (limited to 'gnu/llvm/tools/clang/lib/Driver/Distro.cpp')
| -rw-r--r-- | gnu/llvm/tools/clang/lib/Driver/Distro.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/llvm/tools/clang/lib/Driver/Distro.cpp b/gnu/llvm/tools/clang/lib/Driver/Distro.cpp index 2df297f3cfc..f15c919b9aa 100644 --- a/gnu/llvm/tools/clang/lib/Driver/Distro.cpp +++ b/gnu/llvm/tools/clang/lib/Driver/Distro.cpp @@ -48,6 +48,7 @@ static Distro::DistroType DetectDistro(vfs::FileSystem &VFS) { .Case("yakkety", Distro::UbuntuYakkety) .Case("zesty", Distro::UbuntuZesty) .Case("artful", Distro::UbuntuArtful) + .Case("bionic", Distro::UbuntuBionic) .Default(Distro::UnknownDistro); if (Version != Distro::UnknownDistro) return Version; @@ -88,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; } @@ -126,6 +129,9 @@ static Distro::DistroType DetectDistro(vfs::FileSystem &VFS) { if (VFS.exists("/etc/exherbo-release")) return Distro::Exherbo; + if (VFS.exists("/etc/alpine-release")) + return Distro::AlpineLinux; + if (VFS.exists("/etc/arch-release")) return Distro::ArchLinux; |
