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