summaryrefslogtreecommitdiffhomepage
path: root/pkg/sync/seqatomictest/BUILD
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sync/seqatomictest/BUILD')
-rw-r--r--pkg/sync/seqatomictest/BUILD31
1 files changed, 31 insertions, 0 deletions
diff --git a/pkg/sync/seqatomictest/BUILD b/pkg/sync/seqatomictest/BUILD
new file mode 100644
index 000000000..5c38c783e
--- /dev/null
+++ b/pkg/sync/seqatomictest/BUILD
@@ -0,0 +1,31 @@
+load("//tools:defs.bzl", "go_library", "go_test")
+load("//tools/go_generics:defs.bzl", "go_template_instance")
+
+package(licenses = ["notice"])
+
+go_template_instance(
+ name = "seqatomic_int",
+ out = "seqatomic_int_unsafe.go",
+ package = "seqatomic",
+ suffix = "Int",
+ template = "//pkg/sync:generic_seqatomic",
+ types = {
+ "Value": "int",
+ },
+)
+
+go_library(
+ name = "seqatomic",
+ srcs = ["seqatomic_int_unsafe.go"],
+ deps = [
+ "//pkg/sync",
+ ],
+)
+
+go_test(
+ name = "seqatomic_test",
+ size = "small",
+ srcs = ["seqatomic_test.go"],
+ library = ":seqatomic",
+ deps = ["//pkg/sync"],
+)