github.com/prysmaticlabs/prysm@v1.4.4/shared/debug/BUILD.bazel (about)

     1  load("@io_bazel_rules_go//go:def.bzl", "go_library")
     2  
     3  config_setting(
     4      name = "use_cgosymbolizer",
     5      values = {"define": "USE_CGO_SYMBOLIZER=true"},
     6  )
     7  
     8  # gazelle:ignore
     9  go_library(
    10      name = "go_default_library",
    11      srcs = [
    12          "debug.go",
    13          "maxprocs_metric.go",
    14      ] + select({
    15          ":use_cgosymbolizer": ["cgo_symbolizer.go"],
    16          "//conditions:default": [],
    17      }),
    18      importpath = "github.com/prysmaticlabs/prysm/shared/debug",
    19      visibility = ["//visibility:public"],
    20      deps = [
    21          "@com_github_fjl_memsize//memsizeui:go_default_library",
    22          "@com_github_prometheus_client_golang//prometheus:go_default_library",
    23          "@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
    24          "@com_github_sirupsen_logrus//:go_default_library",
    25          "@com_github_urfave_cli_v2//:go_default_library",
    26      ] + select({
    27          ":use_cgosymbolizer": ["@com_github_ianlancetaylor_cgosymbolizer//:go_default_library"],
    28          "//conditions:default": [],
    29      }),
    30  )