gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/sync/atomicptr/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 load("//tools/go_generics:defs.bzl", "go_template", "go_template_instance") 3 4 package( 5 default_applicable_licenses = ["//:license"], 6 licenses = ["notice"], 7 ) 8 9 go_template( 10 name = "generic_atomicptr", 11 srcs = ["generic_atomicptr_unsafe.go"], 12 types = [ 13 "Value", 14 ], 15 visibility = ["//:sandbox"], 16 ) 17 18 go_template_instance( 19 name = "atomicptr_int", 20 out = "atomicptr_int_unsafe.go", 21 package = "atomicptr", 22 suffix = "Int", 23 template = ":generic_atomicptr", 24 types = { 25 "Value": "int", 26 }, 27 ) 28 29 go_library( 30 name = "atomicptr", 31 srcs = ["atomicptr_int_unsafe.go"], 32 ) 33 34 go_test( 35 name = "atomicptr_test", 36 size = "small", 37 srcs = ["atomicptr_test.go"], 38 library = ":atomicptr", 39 )