2023-03-02 23:42:35 +02:00
|
|
|
# Copyright 2023 Uber Technologies, Inc.
|
2023-04-20 03:23:25 +03:00
|
|
|
# Licensed under the MIT License
|
2023-03-02 23:42:35 +02:00
|
|
|
|
2022-05-05 13:36:58 +03:00
|
|
|
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,
|
2023-04-21 17:00:03 +03:00
|
|
|
importpath = "github.com/uber/hermetic_cc_toolchain/test/gorace",
|
2022-05-05 13:36:58 +03:00
|
|
|
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"],
|
|
|
|
race = "on",
|
|
|
|
)
|