2
0
Fork 0
mirror of https://github.com/bazel-contrib/rules_foreign_cc synced 2024-11-28 08:43:26 +00:00
rules_foreign_cc/examples/third_party/gperftools/BUILD.bazel

35 lines
819 B
Python
Raw Normal View History

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__"],
)