-
Notifications
You must be signed in to change notification settings - Fork 52
/
BUILD.bazel
26 lines (22 loc) · 1.14 KB
/
BUILD.bazel
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
load("@hedron_compile_commands//:refresh_compile_commands.bzl", "refresh_compile_commands")
# TODO(nedwill): this is needed to make fuzz target visible to other paths.
# Move fuzz targets to their own non-root package and make that publicly visible.
package(default_visibility = ["//visibility:public"])
config_setting(
name = "asan_enabled",
values = {"copt": "-fsanitize=address"},
)
refresh_compile_commands(
name = "refresh_compile_commands",
# Specify the targets of interest.
# For example, specify a dict of targets and any flags required to build.
targets = {
"//...": "",
"@fuzztest//...": "",
},
# No need to add flags already in .bazelrc. They're automatically picked up.
# If you don't need flags, a list of targets is also okay, as is a single target string.
# Wildcard patterns, like //... for everything, *are* allowed here, just like a build.
# As are additional targets (+) and subtractions (-), like in bazel query https://docs.bazel.build/versions/main/query.html#expressions
# And if you're working on a header-only library, specify a test or binary target that compiles it.
)