blob: 1f6f54563ca97a52b4aade3d5a713007eb9dff03 [file] [log] [blame]
env GOOS=linux
env GOARCH=amd64
env GOAMD64=v3
go list -f '{{context.ToolTags}}'
stdout 'amd64.v1 amd64.v2 amd64.v3'
env GOARCH=arm
env GOARM=6
go list -f '{{context.ToolTags}}'
stdout 'arm.5 arm.6'
env GOARCH=mips
env GOMIPS=hardfloat
go list -f '{{context.ToolTags}}'
stdout 'mips.hardfloat'
env GOARCH=mips64
env GOMIPS=hardfloat
go list -f '{{context.ToolTags}}'
stdout 'mips64.hardfloat'
env GOARCH=ppc64
env GOPPC64=power9
go list -f '{{context.ToolTags}}'
stdout 'ppc64.power8 ppc64.power9'
env GOARCH=ppc64
env GOPPC64=power10
go list -f '{{context.ToolTags}}'
stdout 'ppc64.power8 ppc64.power9 ppc64.power10'
env GOARCH=ppc64le
env GOPPC64=power9
go list -f '{{context.ToolTags}}'
stdout 'ppc64le.power8 ppc64le.power9'
env GOARCH=ppc64le
env GOPPC64=power10
go list -f '{{context.ToolTags}}'
stdout 'ppc64le.power8 ppc64le.power9 ppc64le.power10'
env GOARCH=riscv64
env GORISCV64=rva20u64
go list -f '{{context.ToolTags}}'
stdout 'riscv64.rva20u64'
env GOARCH=riscv64
env GORISCV64=rva22u64
go list -f '{{context.ToolTags}}'
stdout 'riscv64.rva20u64 riscv64.rva22u64'
env GOARCH=riscv64
env GORISCV64=rva22
! go list -f '{{context.ToolTags}}'
stderr 'go: invalid GORISCV64: must be rva20u64, rva22u64'
env GOARCH=riscv64
env GORISCV64=
go list -f '{{context.ToolTags}}'
stdout 'riscv64.rva20u64'
env GOARCH=386
env GO386=sse2
go list -f '{{context.ToolTags}}'
stdout '386.sse2'
env GOARCH=wasm
env GOWASM=satconv
go list -f '{{context.ToolTags}}'
stdout 'wasm.satconv'
-- go.mod --
module m
-- p.go --
package p