aboutsummaryrefslogtreecommitdiffstats
path: root/main/clang/clang-0001-Add-Alpine-Linux-distro.patch
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2016-03-18 13:22:48 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2016-03-22 10:21:07 +0000
commitf587789bd44d4fe0f05c2d2802a1d546896fca70 (patch)
treeae9ffeb64aebae70744a09d6b99c2e7c905e724c /main/clang/clang-0001-Add-Alpine-Linux-distro.patch
parent6025d33a147333d0ad8fcfbd2b5d84fee00de11b (diff)
downloadaports-f587789bd44d4fe0f05c2d2802a1d546896fca70.tar.bz2
aports-f587789bd44d4fe0f05c2d2802a1d546896fca70.tar.xz
main/clang: upgrade to 3.8.0 and move out from llvm
Diffstat (limited to 'main/clang/clang-0001-Add-Alpine-Linux-distro.patch')
-rw-r--r--main/clang/clang-0001-Add-Alpine-Linux-distro.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/main/clang/clang-0001-Add-Alpine-Linux-distro.patch b/main/clang/clang-0001-Add-Alpine-Linux-distro.patch
new file mode 100644
index 0000000000..6cbed09d53
--- /dev/null
+++ b/main/clang/clang-0001-Add-Alpine-Linux-distro.patch
@@ -0,0 +1,34 @@
+From 4559c66aabd8b56f7127c8b1f5d22f59d3ca2390 Mon Sep 17 00:00:00 2001
+From: Natanael Copa <ncopa@alpinelinux.org>
+Date: Thu, 18 Feb 2016 17:40:00 +0100
+Subject: [PATCH 1/7] Add Alpine Linux distro
+
+---
+ lib/Driver/ToolChains.cpp | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
+index 99c7b8e..70b53bd 100644
+--- a/lib/Driver/ToolChains.cpp
++++ b/lib/Driver/ToolChains.cpp
+@@ -3374,6 +3374,7 @@ enum Distro {
+ // 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,
+@@ -3497,6 +3498,9 @@ static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) {
+ if (D.getVFS().exists("/etc/arch-release"))
+ return ArchLinux;
+
++ if (D.getVFS().exists("/etc/alpine-release"))
++ return AlpineLinux;
++
+ return UnknownDistro;
+ }
+
+--
+2.7.3
+