diff --git a/internal/sanitizers.h b/internal/sanitizers.h index ed5bf789ad460b..5a55335e42929a 100644 --- a/internal/sanitizers.h +++ b/internal/sanitizers.h @@ -16,7 +16,7 @@ #endif #ifdef HAVE_SANITIZER_ASAN_INTERFACE_H -# if __has_feature(address_sanitizer) +# if __has_feature(address_sanitizer) || defined(__SANITIZE_ADDRESS__) # define RUBY_ASAN_ENABLED # include # endif diff --git a/thread.c b/thread.c index 12abb847583cb7..2d2951d18a0fb3 100644 --- a/thread.c +++ b/thread.c @@ -72,7 +72,6 @@ #define TH_SCHED(th) (&(th)->ractor->threads.sched) -#include "internal/sanitizers.h" #include "eval_intern.h" #include "hrtime.h" #include "internal.h"