1
hermetic_cc_toolchain/test/go/BUILD

17 lines
415 B
Python
Raw Normal View History

2021-06-07 22:56:15 +03:00
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library")
# go build -ldflags "-linkmode external -extldflags -static" hello.go
go_library(
name = "go_lib",
srcs = ["hello.go"],
cgo = True,
importpath = "github.com/motiejus/bazel-zig-cc/test/go",
visibility = ["//visibility:private"],
)
go_binary(
name = "go",
embed = [":go_lib"],
visibility = ["//visibility:public"],
)