diff options
Diffstat (limited to 'examples/src/main/native/com/example/BUILD.bazel')
-rw-r--r-- | examples/src/main/native/com/example/BUILD.bazel | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/examples/src/main/native/com/example/BUILD.bazel b/examples/src/main/native/com/example/BUILD.bazel index 4c44327a..338be9ee 100644 --- a/examples/src/main/native/com/example/BUILD.bazel +++ b/examples/src/main/native/com/example/BUILD.bazel @@ -17,13 +17,14 @@ cc_jni_library( "_DISABLE_VECTOR_ANNOTATION=1", ], linkopts = select({ - "//:clang_on_linux": ["-fuse-ld=lld"], "@platforms//os:windows": [ # Windows requires all symbols that should be imported from the main # executable to be defined by an import lib. "/wholearchive:clang_rt.asan_dll_thunk-x86_64.lib", ], - "//conditions:default": [], + "//conditions:default": [ + "-fsanitize=fuzzer-no-link,address", + ], }), visibility = ["//examples:__pkg__"], deps = [ @@ -41,13 +42,14 @@ cc_jni_library( "-fno-sanitize-recover=all", ], linkopts = select({ - "//:clang_on_linux": ["-fuse-ld=lld"], "@platforms//os:windows": [ # Using the asan thunk is correct here as it contains symbols for # UBSan and SanCov as well. "/wholearchive:clang_rt.asan_dll_thunk-x86_64.lib", ], - "//conditions:default": [], + "//conditions:default": [ + "-fsanitize=fuzzer-no-link,undefined", + ], }), visibility = ["//examples:__pkg__"], deps = [ |