From b2aab72d9a7d3e82904be25c86ff24dc09847fc8 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Wed, 7 Jan 2015 13:23:45 -0800 Subject: cmd/cgo: remove obsolete -cdefs flag Now that there's no 6c compiler anymore, there's no need for cgo to generate C headers that are compatible with it. Fixes #9528 Change-Id: I43f53869719eb9a6065f1b39f66f060e604cbee0 Reviewed-on: https://go-review.googlesource.com/2482 Reviewed-by: Ian Lance Taylor --- src/run.bash | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src/run.bash') diff --git a/src/run.bash b/src/run.bash index 6eafc5f0c4..bb1424c504 100755 --- a/src/run.bash +++ b/src/run.bash @@ -181,17 +181,6 @@ linux-linux-amd64-1 | freebsd-freebsd-amd64-1 | darwin-darwin-amd64-1) fi esac -# This tests cgo -cdefs. 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. -# It doesn't work at all now that we disallow C code -# outside runtime. Once runtime has no C code it won't -# even be necessary. -# [ "$CGO_ENABLED" != 1 ] || [ "$GOOS" == darwin ] || -# (xcd ../misc/cgo/testcdefs -# ./test.bash || exit 1 -# ) || exit $? - [ "$CGO_ENABLED" != 1 ] || [ "$GOOS" == darwin ] || (xcd ../misc/cgo/testgodefs ./test.bash || exit 1 -- cgit v1.3-5-g9baa