mirror of
https://github.com/google/benchmark.git
synced 2025-02-09 18:50:19 +08:00
As a fix, also turn the comment in libpfm's build file into a proper Starlark docstring. Co-authored-by: dominic <510002+dmah42@users.noreply.github.com>
22 lines
461 B
Plaintext
22 lines
461 B
Plaintext
"""Build rule for libpfm, which is required to collect performance counters for BENCHMARK_ENABLE_LIBPFM builds."""
|
|
|
|
load("@rules_foreign_cc//foreign_cc:defs.bzl", "make")
|
|
|
|
filegroup(
|
|
name = "pfm_srcs",
|
|
srcs = glob(["**"]),
|
|
)
|
|
|
|
make(
|
|
name = "libpfm",
|
|
lib_source = ":pfm_srcs",
|
|
lib_name = "libpfm",
|
|
copts = [
|
|
"-Wno-format-truncation",
|
|
"-Wno-use-after-free",
|
|
],
|
|
visibility = [
|
|
"//visibility:public",
|
|
],
|
|
)
|