github.com/SagerNet/gvisor@v0.0.0-20210707092255-7731c139d75c/pkg/safecopy/BUILD (about) 1 load("//tools:defs.bzl", "go_library", "go_test") 2 3 package(licenses = ["notice"]) 4 5 go_library( 6 name = "safecopy", 7 srcs = [ 8 "atomic_amd64.s", 9 "atomic_arm64.s", 10 "memclr_amd64.s", 11 "memclr_arm64.s", 12 "memcpy_amd64.s", 13 "memcpy_arm64.s", 14 "safecopy.go", 15 "safecopy_unsafe.go", 16 "sighandler_amd64.s", 17 "sighandler_arm64.s", 18 ], 19 visibility = ["//:sandbox"], 20 deps = [ 21 "//pkg/abi/linux", 22 "//pkg/syserror", 23 "@org_golang_x_sys//unix:go_default_library", 24 ], 25 ) 26 27 go_test( 28 name = "safecopy_test", 29 srcs = [ 30 "safecopy_test.go", 31 ], 32 library = ":safecopy", 33 deps = ["@org_golang_x_sys//unix:go_default_library"], 34 )