Skip to content

Commit 519442c

Browse files
committed
Allow AddressSanitizer
1 parent f6bdc69 commit 519442c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

configure

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

configure.ac

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4364,9 +4364,10 @@ AC_SUBST([CARGO_TARGET_DIR])
43644364
AC_SUBST([CARGO_PROFILE])
43654365
AC_SUBST([CARGO_TARGET])
43664366

4367-
dnl do not enable Rust code if sanitizers are enabled
4368-
dnl this should be fixed in the future to use unstable sanitizer support
4369-
if test "$with_asan" == "yes" || "$with_msan" == "yes" || "$with_ubsan" == "yes" || "$with_tsan" == "yes";
4367+
dnl do not enable Rust code if certain sanitizers are enabled
4368+
dnl asan works fine, but msan requires the entire binary to be instrumented
4369+
dnl ubsan and tsan cause the bindings generation to fail, so they are disabled for now
4370+
if test "$with_msan" == "yes" || "$with_ubsan" == "yes" || "$with_tsan" == "yes";
43704371
then
43714372
HAVE_CARGO="no"
43724373
fi

0 commit comments

Comments
 (0)