]> git.ipfire.org Git - thirdparty/gcc.git/blame - libgo/go/cmd/go/testdata/script/install_cross_gobin.txt
libgo: update to Go1.14beta1
[thirdparty/gcc.git] / libgo / go / cmd / go / testdata / script / install_cross_gobin.txt
CommitLineData
aa8901e9
ILT
1env GO111MODULE=off
2[!short] skip # rebuilds std for alternate architecture
5a8ea165 3[gccgo] skip
aa8901e9 4
dd931d9b
ILT
5cd mycmd
6go build mycmd
7
dd931d9b
ILT
8# cross-compile install with implicit GOBIN=$GOPATH/bin can make subdirectory
9env GOARCH=386
10[386] env GOARCH=amd64
11env GOOS=linux
12go install mycmd
13exists $GOPATH/bin/linux_$GOARCH/mycmd
14
15# cross-compile install with explicit GOBIN cannot make subdirectory
16env GOBIN=$WORK/bin
17! go install mycmd
18! exists $GOBIN/linux_$GOARCH
19
20# installing standard command should still work
21# (should also be mtime update only if cmd/pack is up-to-date).
22! stale cmd/pack
23[!short] go install cmd/pack
24
25-- mycmd/x.go --
26package main
27func main() {}