aboutsummaryrefslogtreecommitdiff
path: root/INSTALL
diff options
context:
space:
mode:
authorRuss Cox <rsc@swtch.com>2014-01-22 11:23:19 -0500
committerRuss Cox <rsc@swtch.com>2014-01-22 11:23:19 -0500
commitbaf127ad04f451979086f3ef1caea22a06748cec (patch)
tree000e1e2bb008c5699c480a1cd10c1db4bc0a63cc /INSTALL
parentf9781769d519e511ae8274d3b7844c8ac4db23f4 (diff)
downloadplan9port-baf127ad04f451979086f3ef1caea22a06748cec.tar.gz
plan9port-baf127ad04f451979086f3ef1caea22a06748cec.tar.bz2
plan9port-baf127ad04f451979086f3ef1caea22a06748cec.zip
INSTALL: diagnose missing gcc on Darwin
TBR=rsc https://codereview.appspot.com/55700043
Diffstat (limited to 'INSTALL')
-rwxr-xr-xINSTALL6
1 files changed, 5 insertions, 1 deletions
diff --git a/INSTALL b/INSTALL
index 8bc208b1..9c5592e1 100755
--- a/INSTALL
+++ b/INSTALL
@@ -76,7 +76,11 @@ if [ `uname` = Darwin ]; then
# On Darwin, uname -m -p cannot be trusted.
echo "* Running on Darwin: checking architecture..."
rm -f ./a.out
- gcc lib/darwin-main.c >/dev/null 2>&1
+ if ! gcc lib/darwin-main.c >/dev/null 2>&1; then
+ echo "Cannot find gcc. You may need to install the command-line tools using Xcode." >&2
+ echo "See http://swtch.com/go/xcodegcc for details." >&2
+ exit 1
+ fi
case "$(file ./a.out 2>/dev/null)" in
*x86_64*)
echo " x86-64 found."