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",