From 4b086c26febc39f4636d82a436fd445b9af9501b Mon Sep 17 00:00:00 2001 From: Dominic Hamon Date: Thu, 16 Mar 2023 10:16:23 +0000 Subject: [PATCH] make libpfm dep work for integrators --- bazel/benchmark_deps.bzl | 2 +- tools/libpfm.BUILD.bazel | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bazel/benchmark_deps.bzl b/bazel/benchmark_deps.bzl index be01c7f5..df0c085f 100644 --- a/bazel/benchmark_deps.bzl +++ b/bazel/benchmark_deps.bzl @@ -58,7 +58,7 @@ def benchmark_deps(): # Downloaded from v4.9.0 tag at https://sourceforge.net/p/perfmon2/libpfm4/ref/master/tags/ http_archive( name = "libpfm", - build_file = "@//tools:libpfm.BUILD.bazel", + build_file = str(Label("@//tools:libpfm.BUILD.bazel")), sha256 = "5da5f8872bde14b3634c9688d980f68bda28b510268723cc12973eedbab9fecc", type = "tar.gz", strip_prefix = "libpfm-4.11.0", diff --git a/tools/libpfm.BUILD.bazel b/tools/libpfm.BUILD.bazel index f661064f..62695342 100644 --- a/tools/libpfm.BUILD.bazel +++ b/tools/libpfm.BUILD.bazel @@ -14,6 +14,7 @@ make( lib_name = "libpfm", copts = [ "-Wno-format-truncation", + "-Wno-use-after-free", ], visibility = [ "//visibility:public",