From: Peter Michael Green <plugwash@raspbian.org>
Date: Thu, 18 May 2017 12:27:33 +0000
X-Dgit-Generated: 1:3.8.1-23+rpi1 d9144f871c28a90b6a44ff547adbe109afcfe6c3
Subject: Use dpkg-architecture instead of config.guess to allow building on arm64 host systems.


---

--- llvm-toolchain-3.8-3.8.1.orig/autoconf/config.guess.hack
+++ llvm-toolchain-3.8-3.8.1/autoconf/config.guess.hack
@@ -1,2 +1,2 @@
 #!/bin/bash -e
-$(dirname "$0")/config.guess | sed -r s/arm[a-zA-Z0-9]*/armv6/
+dpkg-architecture -qDEB_HOST_GNU_TYPE | sed -r s/arm/armv6/
