summaryrefslogtreecommitdiff
path: root/src/run.bash
diff options
context:
space:
mode:
authorRuss Cox <rsc@golang.org>2013-08-02 14:58:27 -0400
committerRuss Cox <rsc@golang.org>2013-08-02 14:58:27 -0400
commit92536bc228bf204f2d3c33a7a65fb8bf9b3c3d0d (patch)
treeafde3f43c2f90239ae2b2436400f6c4817234e98 /src/run.bash
parenta71423166968c6155f2f0c8a3f13c82c87ac9773 (diff)
downloadgo-92536bc228bf204f2d3c33a7a65fb8bf9b3c3d0d.tar.gz
build: on OS X 10.8 and later, use clang instead of gcc
Fixes issue 5822. Will no doubt cause other problems, but Apple has forced our hand. R=golang-dev, bradfitz, khr CC=golang-dev https://codereview.appspot.com/12350044
Diffstat (limited to 'src/run.bash')
-rwxr-xr-xsrc/run.bash5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/run.bash b/src/run.bash
index e5f2c384b..8f416f601 100755
--- a/src/run.bash
+++ b/src/run.bash
@@ -124,7 +124,10 @@ freebsd-386 | freebsd-amd64 | linux-386 | linux-amd64 | netbsd-386 | netbsd-amd6
esac
) || exit $?
-[ "$CGO_ENABLED" != 1 ] ||
+# This tests cgo -godefs. That mode is not supported,
+# so it's okay if it doesn't work on some systems.
+# In particular, it works badly with clang on OS X.
+[ "$CGO_ENABLED" != 1 ] || [ "$GOOS" == darwin ] ||
(xcd ../misc/cgo/testcdefs
./test.bash || exit 1
) || exit $?