1
hermetic_cc_toolchain/test/gorace/BUILD
Motiejus Jakštys 6bd588c07b upgrade to zig 0.11.0-dev.324+f61c5f3f5
includes a zig upstream fix for absolute directories: https://github.com/ziglang/zig/issues/13050
2022-11-29 13:51:57 +02:00

26 lines
566 B
Python

load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
load("//rules:rules_go.bzl", "go_binary")
go_library(
name = "gorace_lib",
srcs = ["main.go"],
# keep
cgo = True,
importpath = "git.sr.ht/~motiejus/bazel-zig-cc/test/gorace",
visibility = ["//visibility:private"],
)
go_binary(
name = "gorace",
embed = [":gorace_lib"],
visibility = ["//visibility:public"],
)
go_test(
name = "gorace_test",
srcs = ["main_test.go"],
embed = [":gorace_lib"],
gc_linkopts = ["-linkmode=external"],
race = "on",
)