aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Meumertzheim <fabian@meumertzhe.im>2022-08-16 17:33:24 +0200
committerFabian Meumertzheim <fabian@meumertzhe.im>2022-08-17 08:39:13 +0200
commitdccc3ae7e8e213164dc2c8df36088a862878f9ba (patch)
tree7488db5d96694b6946f0513fe4a001ea9fbbffb4
parent8659be88166c3c2a7ef9da5b735b6a647e6014c8 (diff)
downloadjazzer-api-dccc3ae7e8e213164dc2c8df36088a862878f9ba.tar.gz
examples: Speculative fix for Windows CI failure
-rw-r--r--examples/src/main/native/com/example/BUILD.bazel7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/src/main/native/com/example/BUILD.bazel b/examples/src/main/native/com/example/BUILD.bazel
index 7f23f75e..4c44327a 100644
--- a/examples/src/main/native/com/example/BUILD.bazel
+++ b/examples/src/main/native/com/example/BUILD.bazel
@@ -9,6 +9,13 @@ cc_jni_library(
"-fsanitize=fuzzer-no-link,address",
"-fno-sanitize-blacklist",
],
+ defines = [
+ # Workaround for Windows build failures with VS 2022:
+ # "lld-link: error: /INFERASANLIBS is not allowed in .drectve"
+ # https://github.com/llvm/llvm-project/issues/56300#issuecomment-1214313292
+ "_DISABLE_STRING_ANNOTATION=1",
+ "_DISABLE_VECTOR_ANNOTATION=1",
+ ],
linkopts = select({
"//:clang_on_linux": ["-fuse-ld=lld"],
"@platforms//os:windows": [