Text file src/cmd/go/testdata/script/darwin_lto_library_ldflag.txt
1 [!GOOS:darwin] skip 2 [!cgo] skip 3 4 ! go build 5 stderr 'invalid flag in #cgo LDFLAGS: -lto_library' 6 7 -- go.mod -- 8 module ldflag 9 10 -- main.go -- 11 package main 12 13 // #cgo CFLAGS: -flto 14 // #cgo LDFLAGS: -lto_library bad.dylib 15 import "C" 16 17 func main() {}