github.com/zxy12/go_duplicate_112_new@v0.0.0-20200807091221-747231827200/src/cmd/go/testdata/script/build_cache_compile.txt (about) 1 # Set up fresh GOCACHE. 2 env GOCACHE=$WORK/gocache 3 mkdir $GOCACHE 4 5 # Building trivial non-main package should run compiler the first time. 6 go build -x lib.go 7 stderr '(compile|gccgo)( |\.exe).*lib\.go' 8 9 # ... but not again ... 10 go build -x lib.go 11 ! stderr '(compile|gccgo)( |\.exe).*lib\.go' 12 13 # ... unless we use -a. 14 go build -a -x lib.go 15 stderr '(compile|gccgo)( |\.exe)' 16 17 -- lib.go -- 18 package lib