...

Text file src/cmd/go/testdata/script/tooltags.txt

Documentation: cmd/go/testdata/script

     1env GOOS=linux
     2
     3env GOARCH=amd64
     4env GOAMD64=v3
     5go list -f '{{context.ToolTags}}'
     6stdout 'amd64.v1 amd64.v2 amd64.v3'
     7
     8env GOARCH=arm
     9env GOARM=6
    10go list -f '{{context.ToolTags}}'
    11stdout 'arm.5 arm.6'
    12
    13env GOARCH=mips
    14env GOMIPS=hardfloat
    15go list -f '{{context.ToolTags}}'
    16stdout 'mips.hardfloat'
    17
    18env GOARCH=mips64
    19env GOMIPS=hardfloat
    20go list -f '{{context.ToolTags}}'
    21stdout 'mips64.hardfloat'
    22
    23env GOARCH=ppc64
    24env GOPPC64=power9
    25go list -f '{{context.ToolTags}}'
    26stdout 'ppc64.power8 ppc64.power9'
    27
    28env GOARCH=ppc64
    29env GOPPC64=power10
    30go list -f '{{context.ToolTags}}'
    31stdout 'ppc64.power8 ppc64.power9 ppc64.power10'
    32
    33env GOARCH=ppc64le
    34env GOPPC64=power9
    35go list -f '{{context.ToolTags}}'
    36stdout 'ppc64le.power8 ppc64le.power9'
    37
    38env GOARCH=ppc64le
    39env GOPPC64=power10
    40go list -f '{{context.ToolTags}}'
    41stdout 'ppc64le.power8 ppc64le.power9 ppc64le.power10'
    42
    43env GOARCH=riscv64
    44env GORISCV64=rva20u64
    45go list -f '{{context.ToolTags}}'
    46stdout 'riscv64.rva20u64'
    47
    48env GOARCH=riscv64
    49env GORISCV64=rva22u64
    50go list -f '{{context.ToolTags}}'
    51stdout 'riscv64.rva20u64 riscv64.rva22u64'
    52
    53env GOARCH=riscv64
    54env GORISCV64=rva22
    55! go list -f '{{context.ToolTags}}'
    56stderr 'go: invalid GORISCV64: must be rva20u64, rva22u64'
    57
    58env GOARCH=riscv64
    59env GORISCV64=
    60go list -f '{{context.ToolTags}}'
    61stdout 'riscv64.rva20u64'
    62
    63env GOARCH=386
    64env GO386=sse2
    65go list -f '{{context.ToolTags}}'
    66stdout '386.sse2'
    67
    68env GOARCH=wasm
    69env GOWASM=satconv
    70go list -f '{{context.ToolTags}}'
    71stdout 'wasm.satconv'
    72
    73-- go.mod --
    74module m
    75
    76-- p.go --
    77package p

View as plain text