0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-11-24 00:17:37 +01:00
mongodb/etc/BUILD.bazel
Zack Winter 5670d0e29f SERVER-89246 Expose sanitizer denylists to bazel sandbox (#21021)
GitOrigin-RevId: 3f2b51e317558e6bb7b6d43e055430cf113c00ff
2024-04-12 20:28:51 +00:00

31 lines
745 B
Python

load("//bazel:mongo_src_rules.bzl", "symlink")
package(default_visibility = ["//visibility:public"])
# This is a hack to work around the fact that the cc_library flag additional_compiler_inputs doesn't
# exist in cc_binary. Instead, we add the denylists to srcs as header files to make them visible to
# the compiler executable.
symlink(
name = "asan_denylist_h",
input = "asan.denylist",
output = "asan.denylist.h",
)
symlink(
name = "msan_denylist_h",
input = "msan.denylist",
output = "msan.denylist.h",
)
symlink(
name = "tsan_denylist_h",
input = "tsan.denylist",
output = "tsan.denylist.h",
)
symlink(
name = "ubsan_denylist_h",
input = "ubsan.denylist",
output = "ubsan.denylist.h",
)