Index: src/base/macros.h |
diff --git a/src/base/macros.h b/src/base/macros.h |
index b99f01b230c52db6c11e90a49c608919ae6ccfab..fa522fb94531c26f4eb7e95b0b3ed910ea43ad93 100644 |
--- a/src/base/macros.h |
+++ b/src/base/macros.h |
@@ -54,15 +54,17 @@ |
#define MUST_USE_RESULT V8_WARN_UNUSED_RESULT |
-// Define DISABLE_ASAN macros. |
+// Define V8_USE_ADDRESS_SANITIZER macros. |
#if defined(__has_feature) |
#if __has_feature(address_sanitizer) |
-#define DISABLE_ASAN __attribute__((no_sanitize_address)) |
+#define V8_USE_ADDRESS_SANITIZER 1 |
#endif |
#endif |
- |
-#ifndef DISABLE_ASAN |
+// Define DISABLE_ASAN macros. |
+#ifdef V8_USE_ADDRESS_SANITIZER |
+#define DISABLE_ASAN __attribute__((no_sanitize_address)) |
+#else |
#define DISABLE_ASAN |
#endif |