summaryrefslogtreecommitdiff
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.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/clang/Driver/Distro.h b/include/clang/Driver/Distro.h
index fab49862a442..4ab4e2ae9937 100644
--- a/include/clang/Driver/Distro.h
+++ b/include/clang/Driver/Distro.h
@@ -26,12 +26,14 @@ public:
// NB: Releases of a particular Linux distro should be kept together
// in this enum, because some tests are done by integer comparison against
// the first and last known member in the family, e.g. IsRedHat().
+ AlpineLinux,
ArchLinux,
DebianLenny,
DebianSqueeze,
DebianWheezy,
DebianJessie,
DebianStretch,
+ DebianBuster,
Exherbo,
RHEL5,
RHEL6,
@@ -58,6 +60,7 @@ public:
UbuntuYakkety,
UbuntuZesty,
UbuntuArtful,
+ UbuntuBionic,
UnknownDistro
};
@@ -107,11 +110,15 @@ public:
}
bool IsDebian() const {
- return DistroVal >= DebianLenny && DistroVal <= DebianStretch;
+ return DistroVal >= DebianLenny && DistroVal <= DebianBuster;
}
bool IsUbuntu() const {
- return DistroVal >= UbuntuHardy && DistroVal <= UbuntuArtful;
+ return DistroVal >= UbuntuHardy && DistroVal <= UbuntuBionic;
+ }
+
+ bool IsAlpineLinux() const {
+ return DistroVal == AlpineLinux;
}
/// @}