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