...

Text file src/cmd/go/testdata/script/darwin_lto_library_ldflag.txt

Documentation: cmd/go/testdata/script

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

View as plain text