aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-devel/clang/files/6.0.0/0003-Add-Gentoo-Linux-distro.patch')
-rw-r--r--sys-devel/clang/files/6.0.0/0003-Add-Gentoo-Linux-distro.patch33
1 files changed, 0 insertions, 33 deletions
diff --git a/sys-devel/clang/files/6.0.0/0003-Add-Gentoo-Linux-distro.patch b/sys-devel/clang/files/6.0.0/0003-Add-Gentoo-Linux-distro.patch
deleted file mode 100644
index a11dcfe..0000000
--- a/sys-devel/clang/files/6.0.0/0003-Add-Gentoo-Linux-distro.patch
+++ /dev/null
@@ -1,33 +0,0 @@
---- a/include/clang/Driver/Distro.h
-+++ b/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().
-+ GentooLinux,
- AlpineLinux,
- ArchLinux,
- DebianLenny,
-@@ -98,6 +99,10 @@ public:
- /// @name Convenience Predicates
- /// @{
-
-+ bool IsGentooLinux() const {
-+ return DistroVal == GentooLinux;
-+ }
-+
- bool IsRedhat() const {
- return DistroVal == Fedora || (DistroVal >= RHEL5 && DistroVal <= RHEL7);
- }
---- a/lib/Driver/Distro.cpp
-+++ b/lib/Driver/Distro.cpp
-@@ -129,6 +129,9 @@ static Distro::DistroType DetectDistro(vfs::FileSystem &VFS) {
- if (VFS.exists("/etc/arch-release"))
- return Distro::ArchLinux;
-
-+ if (VFS.exists("/etc/gentoo-release"))
-+ return Distro::GentooLinux;
-+
- return Distro::UnknownDistro;
- }
-