mirror of
https://gitee.com/openharmony/third_party_benchmark
synced 2024-11-26 17:11:56 +00:00
f9e826db52
Signed-off-by: CrazyRong <zzr189911@163.com>
23 lines
459 B
Plaintext
23 lines
459 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",
|
|
],
|
|
)
|