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

     1  # Test that the correct default GOEXPERIMENT is used when cross
     2  # building with GOENV (#46815).
     3  
     4  # Unset variables set by the TestScript harness. Users typically won't
     5  # explicitly configure these, and #46815 doesn't repro if they are.
     6  env GOOS=
     7  env GOARCH=
     8  env GOEXPERIMENT=
     9  
    10  env GOENV=windows-amd64
    11  go build internal/abi
    12  
    13  env GOENV=ios-arm64
    14  go build internal/abi
    15  
    16  env GOENV=linux-mips
    17  go build internal/abi
    18  
    19  -- windows-amd64 --
    20  GOOS=windows
    21  GOARCH=amd64
    22  
    23  -- ios-arm64 --
    24  GOOS=ios
    25  GOARCH=arm64
    26  
    27  -- linux-mips --
    28  GOOS=linux
    29  GOARCH=mips
    30  

View as plain text