diff --git a/cmake/make_cmakelists.py b/cmake/make_cmakelists.py index 415f937c73..33d8d85639 100755 --- a/cmake/make_cmakelists.py +++ b/cmake/make_cmakelists.py @@ -214,6 +214,12 @@ class WorkspaceFileFunctions(object): def upb_deps(self): pass + def rules_fuzzing_dependencies(self): + pass + + def rules_fuzzing_init(self): + pass + class Converter(object): def __init__(self): diff --git a/tests/BUILD b/tests/BUILD index eabca4bd8a..8dc0e8ce70 100644 --- a/tests/BUILD +++ b/tests/BUILD @@ -140,6 +140,11 @@ cc_test( ) # OSS-Fuzz test +config_setting( + name = "is_clang", + flag_values = {"@bazel_tools//tools/cpp:compiler": "clang"}, +) + cc_fuzz_test( name = "file_descriptor_parsenew_fuzzer", srcs = ["file_descriptor_parsenew_fuzzer.cc"], @@ -147,6 +152,10 @@ cc_fuzz_test( "//:descriptor_upb_proto", "//:upb", ], + target_compatible_with = select({ + ":is_clang": [], + "//conditions:default": ["@platforms//:incompatible"] + }), ) upb_proto_library(