summaryrefslogtreecommitdiffhomepage
path: root/pkg/amutex/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/amutex/BUILD')
-rw-r--r--pkg/amutex/BUILD17
1 files changed, 17 insertions, 0 deletions
diff --git a/pkg/amutex/BUILD b/pkg/amutex/BUILD
new file mode 100644
index 000000000..442096319
--- /dev/null
+++ b/pkg/amutex/BUILD
@@ -0,0 +1,17 @@
+package(licenses = ["notice"]) # Apache 2.0
+
+load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test")
+
+go_library(
+ name = "amutex",
+ srcs = ["amutex.go"],
+ importpath = "gvisor.googlesource.com/gvisor/pkg/amutex",
+ visibility = ["//:sandbox"],
+)
+
+go_test(
+ name = "amutex_test",
+ size = "small",
+ srcs = ["amutex_test.go"],
+ embed = [":amutex"],
+)