[libc-commits] [libc] b1e03d3 - [libc] Restore LIBC_HAVE_ADDRESS_SANITIZER as it is used by some tests

Fangrui Song via libc-commits libc-commits at lists.llvm.org
Wed Jul 10 16:58:29 PDT 2024


Author: Fangrui Song
Date: 2024-07-10T16:58:25-07:00
New Revision: b1e03d3d2960c879066b43c228712a52f50e88a3

URL: https://github.com/llvm/llvm-project/commit/b1e03d3d2960c879066b43c228712a52f50e88a3
DIFF: https://github.com/llvm/llvm-project/commit/b1e03d3d2960c879066b43c228712a52f50e88a3.diff

LOG: [libc] Restore LIBC_HAVE_ADDRESS_SANITIZER as it is used by some tests

Follow-up to #98402

Added: 
    

Modified: 
    libc/src/__support/macros/sanitizer.h

Removed: 
    


################################################################################
diff  --git a/libc/src/__support/macros/sanitizer.h b/libc/src/__support/macros/sanitizer.h
index def272037f42e..c4f8b5bce3975 100644
--- a/libc/src/__support/macros/sanitizer.h
+++ b/libc/src/__support/macros/sanitizer.h
@@ -28,6 +28,7 @@
 #endif
 
 #if LIBC_HAS_FEATURE(address_sanitizer)
+#define LIBC_HAVE_ADDRESS_SANITIZER
 #include <sanitizer/asan_interface.h>
 #define ASAN_POISON_MEMORY_REGION(addr, size)                                  \
   __asan_poison_memory_region((addr), (size))


        


More information about the libc-commits mailing list