blob: 7db881a2682d6f45d8ac22939c8db50224a3c6ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# Set up fresh GOCACHE.
env GOCACHE=$WORK/gocache
mkdir $GOCACHE
# Building trivial non-main package should run compiler the first time.
go build -x lib.go
stderr '(compile|gccgo)( |\.exe).*lib\.go'
# ... but not again ...
go build -x lib.go
! stderr '(compile|gccgo)( |\.exe).*lib\.go'
# ... unless we use -a.
go build -a -x lib.go
stderr '(compile|gccgo)( |\.exe)'
-- lib.go --
package lib
|