From 477d67df8fa91232865542cf8e79109746326278 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Thu, 29 Feb 2024 16:20:14 +0100 Subject: [PATCH] Use `Label` in macros --- fuzzing/private/fuzz_test.bzl | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/fuzzing/private/fuzz_test.bzl b/fuzzing/private/fuzz_test.bzl index e25898d..126a688 100644 --- a/fuzzing/private/fuzz_test.bzl +++ b/fuzzing/private/fuzz_test.bzl @@ -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, @@ -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, @@ -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,