diff options
author | xentec <xentec@aix0.eu> | 2017-10-23 18:27:32 +0200 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2017-11-14 18:42:44 +0100 |
commit | 60c32c79a11ee7715f20aeebd381299120c43eb0 (patch) | |
tree | 22de0e87cb31a859622fce93eec1afca6440a348 /main/clang/0001-Add-Alpine-Linux-distro.patch | |
parent | b4767fa4037857bb3393650e351e69d16a5d7e56 (diff) | |
download | aports-60c32c79a11ee7715f20aeebd381299120c43eb0.tar.bz2 aports-60c32c79a11ee7715f20aeebd381299120c43eb0.tar.xz |
main/clang: upgrade to 5.0.0
Diffstat (limited to 'main/clang/0001-Add-Alpine-Linux-distro.patch')
-rw-r--r-- | main/clang/0001-Add-Alpine-Linux-distro.patch | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/main/clang/0001-Add-Alpine-Linux-distro.patch b/main/clang/0001-Add-Alpine-Linux-distro.patch new file mode 100644 index 0000000000..59e292f62e --- /dev/null +++ b/main/clang/0001-Add-Alpine-Linux-distro.patch @@ -0,0 +1,50 @@ +From 73460524593da572f34f2994a75d1d946613e54a Mon Sep 17 00:00:00 2001 +From: Jakub Jirutka <jakub@jirutka.cz> +Date: Sun, 16 Apr 2017 16:49:00 +0100 +Subject: [PATCH 1/7] Add Alpine Linux distro + +--- + include/clang/Driver/Distro.h | 5 +++++ + lib/Driver/Distro.cpp | 3 +++ + 2 files changed, 8 insertions(+) + +diff --git a/include/clang/Driver/Distro.h b/include/clang/Driver/Distro.h +index fab4986..17775bf 100644 +--- 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(). ++ AlpineLinux, + ArchLinux, + DebianLenny, + DebianSqueeze, +@@ -98,6 +99,10 @@ public: + /// @name Convenience Predicates + /// @{ + ++ bool IsAlpineLinux() const { ++ return DistroVal == AlpineLinux; ++ } ++ + bool IsRedhat() const { + return DistroVal == Fedora || (DistroVal >= RHEL5 && DistroVal <= RHEL7); + } +diff --git a/lib/Driver/Distro.cpp b/lib/Driver/Distro.cpp +index 2df297f..4cf2c2e 100644 +--- 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/alpine-release")) ++ return Distro::AlpineLinux; ++ + return Distro::UnknownDistro; + } + +-- +2.14.1 + |