[compiler-rt] [rtsan] Intercept aligned_alloc on all versions of OSX if available on build machine (PR #112780)
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 22 10:17:49 PDT 2024
================
@@ -461,6 +461,19 @@ INTERCEPTOR(void *, valloc, SIZE_T size) {
return REAL(valloc)(size);
}
+// aligned_alloc was introduced in OSX 10.15
+// Linking will fail when using an older SDK
+#if SANITIZER_APPLE && defined(__MAC_10_15)
----------------
vitalybuka wrote:
Can we just put this into sanitizer_platform_interceptors.h ?
https://github.com/llvm/llvm-project/pull/112780
More information about the llvm-commits
mailing list