diff options
author | Russ Cox <rsc@golang.org> | 2010-01-28 18:18:40 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-01-28 18:18:40 -0800 |
commit | c3f3b08935767b5399e99053cceef9070d8a6df8 (patch) | |
tree | 726e80fc58249162272a683bfbba4501aab1ffc2 /src/cmd/gotest | |
parent | e6201cbac732c7e494b332e00379c6d4653003f5 (diff) | |
download | golang-c3f3b08935767b5399e99053cceef9070d8a6df8.tar.gz |
two minor build fixes
Fixes issue 572.
Fixes issue 570.
R=r
CC=golang-dev
http://codereview.appspot.com/194134
Diffstat (limited to 'src/cmd/gotest')
-rwxr-xr-x | src/cmd/gotest/gotest | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/cmd/gotest/gotest b/src/cmd/gotest/gotest index e6e9f16f5..47662818e 100755 --- a/src/cmd/gotest/gotest +++ b/src/cmd/gotest/gotest @@ -42,10 +42,10 @@ xarm) esac # Allow overrides -GC=${_GC:-$GC} -GL=${GL:-$LD} -GC="$GC -I _test" -GL="$GL -L _test" +GC="$GOBIN/${_GC:-$GC} -I _test" +GL="$GOBIN/${GL:-$LD} -L _test" +CC="$GOBIN/$CC" +LD="$GOBIN/$LD" export GC GL O AS CC LD gofiles="" @@ -99,7 +99,7 @@ set -e "$GOBIN"/gomake testpackage-clean "$GOBIN"/gomake testpackage "GOTESTFILES=$gofiles" if $havex; then - "$GOBIN"/$GC -o $xofile $xgofiles + $GC -o $xofile $xgofiles fi # They all compile; now generate the code to call them. @@ -182,6 +182,6 @@ importpath=$("$GOBIN"/gomake -s importpath) echo '}' }>_testmain.go -"$GOBIN"/$GC _testmain.go -"$GOBIN"/$GL _testmain.$O +$GC _testmain.go +$GL _testmain.$O $E ./$O.out "$@" |