Skip to content

Commit 396e885

Browse files
committed
autotools: Align MSan checking code with CMake's implementation
1 parent abde59f commit 396e885

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

build-aux/m4/bitcoin_secp.m4

+6-2
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,14 @@ AC_MSG_CHECKING(whether MemorySanitizer is enabled)
5050
AC_COMPILE_IFELSE([AC_LANG_SOURCE([[
5151
#if defined(__has_feature)
5252
# if __has_feature(memory_sanitizer)
53-
# error "MemorySanitizer is enabled."
53+
/* MemorySanitizer is enabled. */
54+
# elif
55+
# error "MemorySanitizer is disabled."
5456
# endif
57+
#else
58+
# error "__has_feature is not defined."
5559
#endif
56-
]])], [msan_enabled=no], [msan_enabled=yes])
60+
]])], [msan_enabled=yes], [msan_enabled=no])
5761
AC_MSG_RESULT([$msan_enabled])
5862
])
5963

0 commit comments

Comments
 (0)