gvisor.dev/gvisor@v0.0.0-20240520182842-f9d4d51c7e0f/pkg/sync/BUILD (about)

     1  load("//tools:defs.bzl", "go_library", "go_test")
     2  
     3  package(
     4      default_applicable_licenses = ["//:license"],
     5      default_visibility = ["//:sandbox"],
     6      licenses = ["notice"],
     7  )
     8  
     9  go_library(
    10      name = "sync",
    11      srcs = [
    12          "aliases.go",
    13          "checklocks_off_unsafe.go",
    14          "checklocks_on_unsafe.go",
    15          "fence.go",
    16          "fence_amd64.s",
    17          "fence_arm64.s",
    18          "gate_unsafe.go",
    19          "goyield_go113_unsafe.go",
    20          "goyield_unsafe.go",
    21          "mutex_unsafe.go",
    22          "nocopy.go",
    23          "norace_unsafe.go",
    24          "race_amd64.s",
    25          "race_arm64.s",
    26          "race_unsafe.go",
    27          "runtime.go",
    28          "runtime_amd64.go",
    29          "runtime_constants.go",
    30          "runtime_exectracer2.go",
    31          "runtime_go121_unsafe.go",
    32          "runtime_not_go121_unsafe.go",
    33          "runtime_other.go",
    34          "runtime_spinning_amd64.s",
    35          "runtime_spinning_other.s",
    36          "runtime_unsafe.go",
    37          "rwmutex_unsafe.go",
    38          "seqcount.go",
    39          "sync.go",
    40      ],
    41      marshal = False,
    42      stateify = False,
    43      visibility = ["//:sandbox"],
    44      deps = [
    45          "//pkg/gohacks",
    46          "//pkg/goid",
    47      ],
    48  )
    49  
    50  go_test(
    51      name = "sync_test",
    52      size = "small",
    53      srcs = [
    54          "gate_test.go",
    55          "rwmutex_test.go",
    56          "seqcount_test.go",
    57      ],
    58      library = ":sync",
    59  )