rules_foreign_cc/examples/third_party/gperftools/BUILD.bazel

35 lines
819 B
Python

load("@bazel_skylib//rules:build_test.bzl", "build_test")
# load("@rules_cc//cc:defs.bzl", "cc_test")
exports_files(
[
"BUILD.gperftools.bazel",
],
visibility = ["//visibility:public"],
)
# TODO(rules_foreign_cc#227) This currently gives an error:
# "ERROR: <...>/use_malloc/BUILD:17:14: in malloc attribute of cc_test rule //:test:
# configure_make rule '@gperftools//:gperftools_build' is misplaced here (expected cc_library)"
# cc_test(
# name = "malloc_test",
# srcs = ["malloc_test.cpp"],
# malloc = "@gperftools//:gperftools_build",
# )
build_test(
name = "build_test",
targets = [
"@gperftools//:gperftools_build",
],
)
test_suite(
name = "test",
tests = [
":build_test",
# ":malloc_test",
],
visibility = ["//:__pkg__"],
)