From a31e0a4aacf14be0708aea1f60f25e3607813d2c Mon Sep 17 00:00:00 2001 From: David Crawshaw Date: Fri, 20 Oct 2017 20:46:04 -0400 Subject: [PATCH] misc/cgo/testplugin: speed up tests Running test.bash goes from 30s to 10s on a linux workstation. (The coming pkg cache work in cmd/go would presumably do the same thing, but this makes all.bash faster today.) Change-Id: I8c9b0400071a412fce55b386e939906bb1c1d84d Reviewed-on: https://go-review.googlesource.com/72330 Run-TryBot: David Crawshaw TryBot-Result: Gobot Gobot Reviewed-by: Ian Lance Taylor --- misc/cgo/testplugin/test.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc/cgo/testplugin/test.bash b/misc/cgo/testplugin/test.bash index dbc28b19aa..eed7fc451b 100755 --- a/misc/cgo/testplugin/test.bash +++ b/misc/cgo/testplugin/test.bash @@ -23,7 +23,7 @@ trap cleanup EXIT rm -rf pkg sub mkdir sub -GOPATH=$(pwd) go build -gcflags "$GO_GCFLAGS" -buildmode=plugin plugin1 +GOPATH=$(pwd) go build -i -gcflags "$GO_GCFLAGS" -buildmode=plugin plugin1 GOPATH=$(pwd) go build -gcflags "$GO_GCFLAGS" -buildmode=plugin plugin2 cp plugin2.so plugin2-dup.so GOPATH=$(pwd)/altpath go build -gcflags "$GO_GCFLAGS" -buildmode=plugin plugin-mismatch -- 2.48.1