mirror of
https://github.com/netbirdio/gvisor.git
synced 2026-05-22 17:12:49 -07:00
9cbf5a3dcc
Fixes #1255 Signed-off-by: Haibo Xu <haibo.xu@arm.com> Change-Id: I8614e6f3ee321c2989567e4e712aa8f28cc9db14
36 lines
615 B
Python
36 lines
615 B
Python
load("//tools:defs.bzl", "go_library", "go_test")
|
|
|
|
package(licenses = ["notice"])
|
|
|
|
go_library(
|
|
name = "cpuid",
|
|
srcs = [
|
|
"cpu_amd64.s",
|
|
"cpuid.go",
|
|
"cpuid_arm64.go",
|
|
"cpuid_x86.go",
|
|
],
|
|
visibility = ["//:sandbox"],
|
|
deps = ["//pkg/log"],
|
|
)
|
|
|
|
go_test(
|
|
name = "cpuid_test",
|
|
size = "small",
|
|
srcs = [
|
|
"cpuid_arm64_test.go",
|
|
"cpuid_x86_test.go",
|
|
],
|
|
library = ":cpuid",
|
|
)
|
|
|
|
go_test(
|
|
name = "cpuid_parse_test",
|
|
size = "small",
|
|
srcs = [
|
|
"cpuid_parse_x86_test.go",
|
|
],
|
|
library = ":cpuid",
|
|
tags = ["manual"],
|
|
)
|