Fix MODE=dbg build

Fixes #1067
This commit is contained in:
Justine Tunney 2024-01-06 15:22:19 -08:00
parent 0c51995b2b
commit f224a55d57
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
3 changed files with 3 additions and 2 deletions

View file

@ -39,7 +39,7 @@
int madvise(void *addr, size_t length, int advice) {
int rc;
if (IsAsan() && !__asan_is_valid(addr, length)) {
rc = efault();
rc = enomem();
} else if (!IsWindows()) {
rc = sys_madvise(addr, length, advice);
} else {

View file

@ -85,6 +85,7 @@ $(THIRD_PARTY_BASH_OBJS): private \
-Wno-missing-braces \
-Wno-unused-label \
-Wno-unused-value \
-Wno-return-type \
-Wno-parentheses \
-fportcosmo

View file

@ -23,7 +23,7 @@
#endif
#if __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__)
#include <sanitizer/asan_interface.h>
//#include <sanitizer/asan_interface.h>
#endif
#if !defined(__USING_SJLJ_EXCEPTIONS__)