We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 729c26f commit ce6de37Copy full SHA for ce6de37
make/autoconf/jdk-options.m4
@@ -434,8 +434,9 @@ AC_DEFUN_ONCE([JDKOPT_SETUP_ADDRESS_SANITIZER],
434
elif test "x$TOOLCHAIN_TYPE" = "xmicrosoft"; then
435
# -Oy- is equivalent to -fno-omit-frame-pointer in GCC/Clang.
436
ASAN_CFLAGS="-fsanitize=address -Oy- -DADDRESS_SANITIZER"
437
- # MSVC produces a warning if you pass -fsanitize=address to the linker.
438
- ASAN_LDFLAGS=""
+ # MSVC produces a warning if you pass -fsanitize=address to the linker. It also complains
+ $ if -DEBUG is not passed to the linker when building with ASan.
439
+ ASAN_LDFLAGS="-debug"
440
fi
441
JVM_CFLAGS="$JVM_CFLAGS $ASAN_CFLAGS"
442
JVM_LDFLAGS="$JVM_LDFLAGS $ASAN_LDFLAGS"
0 commit comments