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

     1  # Check that goroutine scheduling does not affect compiler output.
     2  # If it does, reproducible builds will not work very well.
     3  [short] skip
     4  [GOOS:aix] env CGO_ENABLED=0  # go.dev/issue/56896
     5  env GOMAXPROCS=16
     6  go build -a -o http16.o net/http
     7  env GOMAXPROCS=17
     8  go build -a -o http17.o net/http
     9  cmp -q http16.o http17.o
    10  env GOMAXPROCS=18
    11  go build -a -o http18.o net/http
    12  cmp -q http16.o http18.o
    13  
    14  # Check that goroutine scheduling does not affect linker output.
    15  env GOMAXPROCS=16
    16  go build -a -o gofmt16.exe cmd/gofmt
    17  env GOMAXPROCS=17
    18  go build -a -o gofmt17.exe cmd/gofmt
    19  cmp -q gofmt16.exe gofmt17.exe
    20  env GOMAXPROCS=18
    21  go build -a -o gofmt18.exe cmd/gofmt
    22  cmp -q gofmt16.exe gofmt18.exe
    23  

View as plain text