491144c721
1. Go needed quite a few hacks to be made work with Go. From https://github.com/ziglang/zig/pull/15060 less hacks are needed (but still not zero, though now documented). 2. This file was never meant to be exposed as part of `hermetic_cc_toolchain`. I probably broke someone. Sorry.
27 lines
575 B
Python
27 lines
575 B
Python
# Copyright 2023 Uber Technologies, Inc.
|
|
# Licensed under the MIT License
|
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_binary", "go_library", "go_test")
|
|
|
|
go_library(
|
|
name = "gorace_lib",
|
|
srcs = ["main.go"],
|
|
# keep
|
|
cgo = True,
|
|
importpath = "github.com/uber/hermetic_cc_toolchain/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"],
|
|
race = "on",
|
|
)
|