diff options
Diffstat (limited to 'pkg/cpuid/BUILD')
-rw-r--r-- | pkg/cpuid/BUILD | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/pkg/cpuid/BUILD b/pkg/cpuid/BUILD index ed111fd2a..d6cb1a549 100644 --- a/pkg/cpuid/BUILD +++ b/pkg/cpuid/BUILD @@ -1,5 +1,4 @@ -load("@io_bazel_rules_go//go:def.bzl", "go_test") -load("//tools/go_stateify:defs.bzl", "go_library") +load("//tools:defs.bzl", "go_library", "go_test") package(licenses = ["notice"]) @@ -8,8 +7,9 @@ go_library( srcs = [ "cpu_amd64.s", "cpuid.go", + "cpuid_arm64.go", + "cpuid_x86.go", ], - importpath = "gvisor.dev/gvisor/pkg/cpuid", visibility = ["//:sandbox"], deps = ["//pkg/log"], ) @@ -17,16 +17,19 @@ go_library( go_test( name = "cpuid_test", size = "small", - srcs = ["cpuid_test.go"], - embed = [":cpuid"], + srcs = [ + "cpuid_arm64_test.go", + "cpuid_x86_test.go", + ], + library = ":cpuid", ) go_test( name = "cpuid_parse_test", size = "small", srcs = [ - "cpuid_parse_test.go", + "cpuid_parse_x86_test.go", ], - embed = [":cpuid"], + library = ":cpuid", tags = ["manual"], ) |