You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
garble/testdata/scripts/crossbuild.txt

27 lines
521 B
Plaintext

# TODO: always cross-build, even on a windows/arm host
env GOOS=windows
env GOARCH=arm
env GOPRIVATE='*'
# TODO: seems like the linker fails for some reason with the full binary build below.
# For now, just test that we can build the library.
garble build net/http
# Link a binary importing net/http, which will catch whether or not we
# support ImportMap when linking.
# garble build
-- go.mod --
module test/main
go 1.16
-- main.go --
package main
import "net/http"
func main() {
http.ListenAndServe("", nil)
}