Enable asan on debug macos aarch64 builds (#17058)

This commit is contained in:
pfg
2025-02-05 17:24:32 -08:00
committed by GitHub
parent 1ccc13ecf7
commit 5620a7dfac
11 changed files with 57 additions and 5 deletions

View File

@@ -133,10 +133,12 @@
#if OS(DARWIN)
#if BUN_DEBUG
#if !__has_feature(address_sanitizer)
#include <malloc/malloc.h>
#define IS_MALLOC_DEBUGGING_ENABLED 1
#endif
#endif
#endif
static WTF::StringView StringView_slice(WTF::StringView sv, unsigned start, unsigned end)
{

View File

@@ -50,10 +50,12 @@
#if OS(DARWIN)
#if BUN_DEBUG
#if !__has_feature(address_sanitizer)
#include <malloc/malloc.h>
#define IS_MALLOC_DEBUGGING_ENABLED 1
#endif
#endif
#endif
using namespace JSC;
using namespace WTF;