[compiler-rt] Reland "[rtsan] Intercept aligned_alloc on all versions of OSX if available on the build machine" (PR #114153)

Mariusz Borsa via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 29 17:09:17 PDT 2024


================
@@ -464,10 +464,13 @@ INTERCEPTOR(void *, valloc, SIZE_T size) {
 }
 
 #if SANITIZER_INTERCEPT_ALIGNED_ALLOC
+#pragma clang diagnostic push
+#pragma clang diagnostic ignored "-Wunguarded-availability-new"
----------------
wrotki wrote:

The SDK being used while linking _does_ have aligned_alloc (in System.B.dylib), so it will link fine - but attempt to run the resulting binary on macOS 10.13 will result in a crash. Hence the warning (converted to error in Apple fork, so it won't build with -mminmacos=10.13)

https://github.com/llvm/llvm-project/pull/114153


More information about the llvm-commits mailing list