Integrated windowsconstgen into the test build script. There's a small issue regarding amd64...
This commit is contained in:
parent
5a9a0eda6a
commit
e2063cf946
14
test.sh
14
test.sh
|
@ -1,2 +1,16 @@
|
||||||
|
if [ ! -f tools/windowsconstgen.go ]; then
|
||||||
|
echo error: $0 must be run from the package source root 1>&2
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
set -e
|
||||||
|
if [ x$GOOS = xwindows ]; then
|
||||||
|
# have to build windowsconstgen as the host, otherwise weird things happen
|
||||||
|
wcg=`mktemp /tmp/windowsconstgenXXXXXXXXXXXX`
|
||||||
|
GOOS= GOARCH= go build -o $wcg tools/windowsconstgen.go
|
||||||
|
# but we can run it regardless of $GOOS/$GOARCH
|
||||||
|
$wcg . 386 "$@"
|
||||||
|
$wcg . amd64 "$@"
|
||||||
|
rm $wcg
|
||||||
|
fi
|
||||||
cd test
|
cd test
|
||||||
go build "$@"
|
go build "$@"
|
||||||
|
|
Loading…
Reference in New Issue