Blame patches/clang_host/clang-0001-Add-Alpine-Linux-distro.patch

Lucio Andrés Illanes Albornoz (arab, vxp) 585426
From 4559c66aabd8b56f7127c8b1f5d22f59d3ca2390 Mon Sep 17 00:00:00 2001
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
From: Natanael Copa <ncopa@alpinelinux.org>
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
Date: Thu, 18 Feb 2016 17:40:00 +0100
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
Subject: [PATCH 1/7] Add Alpine Linux distro
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
---
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
 lib/Driver/ToolChains.cpp | 4 ++++
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
 1 file changed, 4 insertions(+)
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
diff --git a/lib/Driver/ToolChains.cpp b/lib/Driver/ToolChains.cpp
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
index 99c7b8e..70b53bd 100644
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
--- a/lib/Driver/ToolChains.cpp
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
+++ b/lib/Driver/ToolChains.cpp
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
@@ -3374,6 +3374,7 @@ enum Distro {
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
   // NB: Releases of a particular Linux distro should be kept together
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
   // in this enum, because some tests are done by integer comparison against
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
   // the first and last known member in the family, e.g. IsRedHat().
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
+  AlpineLinux,
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
   ArchLinux,
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
   DebianLenny,
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
   DebianSqueeze,
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
@@ -3497,6 +3498,9 @@ static Distro DetectDistro(const Driver &D, llvm::Triple::ArchType Arch) {
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
   if (D.getVFS().exists("/etc/arch-release"))
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
     return ArchLinux;
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
 
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
+  if (D.getVFS().exists("/etc/alpine-release"))
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
+    return AlpineLinux;
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
+
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
   return UnknownDistro;
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
 }
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
 
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
-- 
Lucio Andrés Illanes Albornoz (arab, vxp) 585426
2.7.3
Lucio Andrés Illanes Albornoz (arab, vxp) 585426