Skip to content

Commit

Permalink
Use Label in macros
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Feb 29, 2024
1 parent 29a1a88 commit 477d67d
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions fuzzing/private/fuzz_test.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ def cc_fuzz_test(
name,
corpus = None,
dicts = None,
engine = "@rules_fuzzing//fuzzing:cc_engine",
engine = Label("//fuzzing:cc_engine"),
size = None,
tags = None,
timeout = None,
Expand Down Expand Up @@ -225,7 +225,7 @@ def java_fuzz_test(
target_class = None,
corpus = None,
dicts = None,
engine = "@rules_fuzzing//fuzzing:java_engine",
engine = Label("//fuzzing:java_engine"),
size = None,
tags = None,
timeout = None,
Expand Down Expand Up @@ -329,19 +329,19 @@ def java_fuzz_test(
jazzer_fuzz_binary(
name = raw_binary_name,
sanitizer = select({
"@rules_fuzzing//fuzzing/private:is_oss_fuzz": native_library_sanitizer,
"@rules_fuzzing//fuzzing/private:use_asan": "asan",
"@rules_fuzzing//fuzzing/private:use_ubsan": "ubsan",
Label("//fuzzing/private:is_oss_fuzz"): native_library_sanitizer,
Label("//fuzzing/private:use_asan"): "asan",
Label("//fuzzing/private:use_ubsan"): "ubsan",
"//conditions:default": "none",
}),
sanitizer_options = select({
"@rules_fuzzing//fuzzing/private:is_oss_fuzz": Label("//fuzzing/private:oss_fuzz_jazzer_sanitizer_options.sh"),
Label("//fuzzing/private:is_oss_fuzz"): Label("//fuzzing/private:oss_fuzz_jazzer_sanitizer_options.sh"),
"//conditions:default": Label("//fuzzing/private:local_jazzer_sanitizer_options.sh"),
}),
sanitizer_runtime = select({
"@rules_fuzzing//fuzzing/private:is_oss_fuzz": _RUNTIME_BY_NAME[native_library_sanitizer],
"@rules_fuzzing//fuzzing/private:use_asan": _ASAN_RUNTIME,
"@rules_fuzzing//fuzzing/private:use_ubsan": _UBSAN_RUNTIME,
Label("//fuzzing/private:is_oss_fuzz"): _RUNTIME_BY_NAME[native_library_sanitizer],
Label("//fuzzing/private:use_asan"): _ASAN_RUNTIME,
Label("//fuzzing/private:use_ubsan"): _UBSAN_RUNTIME,
"//conditions:default": None,
}),
target = raw_target_name,
Expand Down

0 comments on commit 477d67d

Please sign in to comment.