mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
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
46 lines
875 B
Python
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",
|
|
],
|
|
)
|