1load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") 2 3go_library( 4 name = "go_default_library", 5 srcs = ["cgo_pthread_flag.go"], 6 cgo = True, 7 importpath = "github.com/bazelbuild/rules_go/tests/cgo_pthread_flag", 8) 9 10go_test( 11 name = "go_default_test", 12 size = "small", 13 srcs = ["cgo_pthread_flag_test.go"], 14 embed = [":go_default_library"], 15) 16