aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/env_cross_build.txt
blob: 3feeba6b1412d463264614ab53bed41eb135980e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Test that the corect default GOEXPERIMENT is used when cross
# building with GOENV (#46815).

# Unset variables set by the TestScript harness. Users typically won't
# explicitly configure these, and #46815 doesn't repro if they are.
env GOOS=
env GOARCH=
env GOEXPERIMENT=

env GOENV=windows-amd64
go build internal/abi

env GOENV=ios-arm64
go build internal/abi

env GOENV=linux-mips
go build internal/abi

-- windows-amd64 --
GOOS=windows
GOARCH=amd64

-- ios-arm64 --
GOOS=ios
GOARCH=arm64

-- linux-mips --
GOOS=linux
GOARCH=mips