2018-07-13 22:35:15 -05:00
|
|
|
load("@io_bazel_rules_go//go:def.bzl", "go_library")
|
|
|
|
|
2020-03-30 20:20:27 -07:00
|
|
|
config_setting(
|
|
|
|
name = "use_cgosymbolizer",
|
|
|
|
values = {"define": "USE_CGO_SYMBOLIZER=true"},
|
|
|
|
)
|
|
|
|
|
2021-03-08 21:09:39 +03:00
|
|
|
# gazelle:ignore
|
2018-07-13 22:35:15 -05:00
|
|
|
go_library(
|
|
|
|
name = "go_default_library",
|
2019-06-07 15:43:22 -04:00
|
|
|
srcs = [
|
|
|
|
"debug.go",
|
|
|
|
"maxprocs_metric.go",
|
2020-03-30 20:20:27 -07:00
|
|
|
] + select({
|
|
|
|
":use_cgosymbolizer": ["cgo_symbolizer.go"],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
2023-03-17 11:52:56 -07:00
|
|
|
importpath = "github.com/prysmaticlabs/prysm/v4/runtime/debug",
|
2018-07-13 22:35:15 -05:00
|
|
|
visibility = ["//visibility:public"],
|
|
|
|
deps = [
|
|
|
|
"@com_github_fjl_memsize//memsizeui:go_default_library",
|
2019-06-07 15:43:22 -04:00
|
|
|
"@com_github_prometheus_client_golang//prometheus:go_default_library",
|
|
|
|
"@com_github_prometheus_client_golang//prometheus/promauto:go_default_library",
|
2018-07-13 22:35:15 -05:00
|
|
|
"@com_github_sirupsen_logrus//:go_default_library",
|
2020-05-30 23:44:34 -07:00
|
|
|
"@com_github_urfave_cli_v2//:go_default_library",
|
2020-03-30 20:20:27 -07:00
|
|
|
] + select({
|
|
|
|
":use_cgosymbolizer": ["@com_github_ianlancetaylor_cgosymbolizer//:go_default_library"],
|
|
|
|
"//conditions:default": [],
|
|
|
|
}),
|
2018-07-13 22:35:15 -05:00
|
|
|
)
|