From 549f93173c57b178b76173c7f7da73e4fb5ace1d Mon Sep 17 00:00:00 2001 From: Justin King Date: Wed, 18 Jun 2025 18:24:52 -0700 Subject: [PATCH] lsan: fix macos build after #144604 Signed-off-by: Justin King --- compiler-rt/lib/lsan/lsan_interceptors.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/compiler-rt/lib/lsan/lsan_interceptors.cpp b/compiler-rt/lib/lsan/lsan_interceptors.cpp index 6da9d0d9d24f8..f9f83f6c0cc45 100644 --- a/compiler-rt/lib/lsan/lsan_interceptors.cpp +++ b/compiler-rt/lib/lsan/lsan_interceptors.cpp @@ -146,6 +146,9 @@ INTERCEPTOR(void*, valloc, uptr size) { GET_STACK_TRACE_MALLOC; return lsan_valloc(size, stack); } +#else +# define LSAN_MAYBE_INTERCEPT_FREE_SIZED +# define LSAN_MAYBE_INTERCEPT_FREE_ALIGNED_SIZED #endif // !SANITIZER_APPLE #if SANITIZER_INTERCEPT_MEMALIGN