aboutsummaryrefslogtreecommitdiff
path: root/tests/legacy/cgo_opts/BUILD.bazel
blob: d8e51c34733614d95b3ba16b88f32ccab4c64b83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")

go_library(
    name = "go_default_library",
    srcs = ["cgo_opts.go"],
    cgo = True,
    copts = ["-DFOO=1 -DBAR=2 -g -O2"],
    importpath = "github.com/bazelbuild/rules_go/tests/cgo_opts",
    visibility = ["//visibility:public"],
)

go_test(
    name = "go_default_test",
    srcs = ["cgo_opts_test.go"],
    embed = [":go_default_library"],
)