aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Driver/Distro.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/clang/Driver/Distro.h')
-rw-r--r--include/clang/Driver/Distro.h13
1 files changed, 7 insertions, 6 deletions
diff --git a/include/clang/Driver/Distro.h b/include/clang/Driver/Distro.h
index 5651ebb6d42c..67dc764fb7d1 100644
--- a/include/clang/Driver/Distro.h
+++ b/include/clang/Driver/Distro.h
@@ -1,9 +1,8 @@
//===--- Distro.h - Linux distribution detection support --------*- C++ -*-===//
//
-// The LLVM Compiler Infrastructure
-//
-// This file is distributed under the University of Illinois Open Source
-// License. See LICENSE.TXT for details.
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
@@ -34,6 +33,7 @@ public:
DebianJessie,
DebianStretch,
DebianBuster,
+ DebianBullseye,
Exherbo,
RHEL5,
RHEL6,
@@ -64,6 +64,7 @@ public:
UbuntuBionic,
UbuntuCosmic,
UbuntuDisco,
+ UbuntuEoan,
UnknownDistro
};
@@ -113,11 +114,11 @@ public:
}
bool IsDebian() const {
- return DistroVal >= DebianLenny && DistroVal <= DebianBuster;
+ return DistroVal >= DebianLenny && DistroVal <= DebianBullseye;
}
bool IsUbuntu() const {
- return DistroVal >= UbuntuHardy && DistroVal <= UbuntuDisco;
+ return DistroVal >= UbuntuHardy && DistroVal <= UbuntuEoan;
}
bool IsAlpineLinux() const {