File tree 1 file changed +3
-3
lines changed
src/cmd/go/testdata/script
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,12 +41,12 @@ stdout 'binary contains GOROOT: false'
41
41
env GO111MODULE=off # The current released gccgo does not support builds in module mode.
42
42
cd $GOPATH/src/a
43
43
go build -compiler=gccgo -o $WORK/gccgo-paths-a.exe .
44
- exec $WORK/gccgo-paths-a.exe $WORK/gccgo-paths-b .exe
44
+ exec $WORK/gccgo-paths-a.exe $WORK/gccgo-paths-a .exe
45
45
stdout 'binary contains GOPATH: true'
46
- stdout 'binary contains GOROOT: true'
46
+ stdout 'binary contains GOROOT: false' # gccgo doesn't load std from GOROOT.
47
47
48
48
# A binary built with gccgo with -trimpath should not contain GOPATH or GOROOT.
49
- go build -compiler=gccgo -trimpath -o $WORK/gccgo-paths-a .exe .
49
+ go build -compiler=gccgo -trimpath -o $WORK/gccgo-paths-b .exe .
50
50
exec $WORK/gccgo-paths-a.exe $WORK/gccgo-paths-b.exe
51
51
stdout 'binary contains GOPATH: false'
52
52
stdout 'binary contains GOROOT: false'
You can’t perform that action at this time.
0 commit comments