aboutsummaryrefslogtreecommitdiff
path: root/examples/src/main/native/BUILD.bazel
diff options
context:
space:
mode:
Diffstat (limited to 'examples/src/main/native/BUILD.bazel')
-rw-r--r--examples/src/main/native/BUILD.bazel8
1 files changed, 3 insertions, 5 deletions
diff --git a/examples/src/main/native/BUILD.bazel b/examples/src/main/native/BUILD.bazel
index df24bb37..32358891 100644
--- a/examples/src/main/native/BUILD.bazel
+++ b/examples/src/main/native/BUILD.bazel
@@ -1,6 +1,6 @@
-load("@rules_cc//cc:defs.bzl", "cc_binary")
+load("//bazel:cc.bzl", "cc_shared_library")
-cc_binary(
+cc_shared_library(
name = "native_asan",
srcs = [
"com_example_ExampleFuzzerWithNative.cpp",
@@ -12,14 +12,13 @@ cc_binary(
linkopts = [
"-fsanitize=fuzzer-no-link,address",
],
- linkshared = True,
visibility = ["//examples:__pkg__"],
deps = [
"@bazel_tools//tools/jdk:jni",
],
)
-cc_binary(
+cc_shared_library(
name = "native_ubsan",
srcs = [
"com_example_ExampleFuzzerWithNative.cpp",
@@ -34,7 +33,6 @@ cc_binary(
linkopts = [
"-fsanitize=fuzzer-no-link,undefined",
],
- linkshared = True,
visibility = ["//examples:__pkg__"],
deps = [
"@bazel_tools//tools/jdk:jni",