third-party/benchmark/tools/libpfm.BUILD.bazel
raw| 1 | # Build rule for libpfm, which is required to collect performance counters for |
| 2 | # BENCHMARK_ENABLE_LIBPFM builds. |
| 3 | |
| 4 | load("@rules_foreign_cc//foreign_cc:defs.bzl", "make") |
| 5 | |
| 6 | filegroup( |
| 7 | name = "pfm_srcs", |
| 8 | srcs = glob(["**"]), |
| 9 | ) |
| 10 | |
| 11 | make( |
| 12 | name = "libpfm", |
| 13 | lib_source = ":pfm_srcs", |
| 14 | lib_name = "libpfm", |
| 15 | copts = [ |
| 16 | "-Wno-format-truncation", |
| 17 | "-Wno-use-after-free", |
| 18 | ], |
| 19 | visibility = [ |
| 20 | "//visibility:public", |
| 21 | ], |
| 22 | ) |