summaryrefslogtreecommitdiff
path: root/include/clang/Driver/Distro.h
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2017-12-18 20:11:37 +0000
committerDimitry Andric <dim@FreeBSD.org>2017-12-18 20:11:37 +0000
commit461a67fa15370a9ec88f8f8a240bf7c123bb2029 (patch)
tree6942083d7d56bba40ec790a453ca58ad3baf6832 /include/clang/Driver/Distro.h
parent75c3240472ba6ac2669ee72ca67eb72d4e2851fc (diff)
Notes
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;
}
/// @}