summaryrefslogtreecommitdiffstats
path: root/clang/include/clang/Driver/Distro.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang/include/clang/Driver/Distro.h')
-rw-r--r--clang/include/clang/Driver/Distro.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/include/clang/Driver/Distro.h b/clang/include/clang/Driver/Distro.h
index eeb4f25f348..4ab4e2ae993 100644
--- a/clang/include/clang/Driver/Distro.h
+++ b/clang/include/clang/Driver/Distro.h
@@ -26,6 +26,7 @@ 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,
@@ -116,6 +117,10 @@ public:
return DistroVal >= UbuntuHardy && DistroVal <= UbuntuBionic;
}
+ bool IsAlpineLinux() const {
+ return DistroVal == AlpineLinux;
+ }
+
/// @}
};
OpenPOWER on IntegriCloud