Files
gVisor bot 1f79e1b26f Prepare for go.dev/cl/652276
Upstream Go CL https://go.dev/cl/652276 removes an unused field from
runtime.gobuf. This CL prepares for this change.

This CL also simplifies the build constraints in the hosttid files:
- Remove legacy '// +build' constraint syntax
- Remove explicit GOARCH matching. The GOARCH is in the filename

PiperOrigin-RevId: 733382770
2025-03-04 10:41:09 -08:00

46 lines
875 B
Python

load("//tools:defs.bzl", "go_library", "go_test")
package(
default_applicable_licenses = ["//:license"],
licenses = ["notice"],
)
go_library(
name = "hosttid",
srcs = [
"hosttid.go",
"hosttid_124_amd64.s",
"hosttid_124_arm64.s",
"hosttid_125_amd64.s",
"hosttid_125_arm64.s",
],
visibility = ["//visibility:public"],
)
go_test(
name = "hosttid_test",
size = "small",
srcs = [
"hosttid_test.go",
],
library = ":hosttid",
deps = [
"//pkg/sync",
"@org_golang_x_sys//unix:go_default_library",
],
)
go_test(
name = "hosttid_net_test",
size = "small",
srcs = [
"hosttid_net_test.go",
"hosttid_test.go",
],
library = ":hosttid",
deps = [
"//pkg/sync",
"@org_golang_x_sys//unix:go_default_library",
],
)