aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/testdata/script/build_runtime_gcflags.txt
blob: da1b65f06c849788fbf7b7b73a50ee0f40979892 (plain)
1
2
3
4
5
6
7
8
9
10
11
env GO111MODULE=off
[short] skip # rebuilds all of std

# Set up fresh GOCACHE.
env GOCACHE=$WORK/gocache
mkdir $GOCACHE

# Verify the standard library (specifically runtime/internal/atomic) can be
# built with -gcflags when -n is given. See golang.org/issue/29346.
go build -n -gcflags=all='-l' std
stderr 'compile.* -l .* runtime/internal/atomic'