aboutsummaryrefslogtreecommitdiffstats
path: root/main/llvm/llvm-exit-config-when-cbuild-set.patch
blob: ffe0fd2f8f6b639f0c922265b6e38d99f0e572a0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
--- a/autoconf/config.guess	2016-08-04 01:13:53.941899947 +0200
+++ b/autoconf/config.guess	2016-08-04 01:16:30.084553757 +0200
@@ -142,6 +142,10 @@
 
 # Note: order is significant - the case branches are not exclusive.
 
+if [ -n "$CBUILD" ]; then
+	echo "ERROR: \$CBUILD is set: $CBUILD"; exit
+fi
+
 case "${UNAME_MACHINE}:${UNAME_SYSTEM}:${UNAME_RELEASE}:${UNAME_VERSION}" in
     *:NetBSD:*:*)
 	# NetBSD (nbsd) targets should (where applicable) match one or