diff --git a/compiler-rt/lib/hwasan/hwasan_interceptors.cpp b/compiler-rt/lib/hwasan/hwasan_interceptors.cpp --- a/compiler-rt/lib/hwasan/hwasan_interceptors.cpp +++ b/compiler-rt/lib/hwasan/hwasan_interceptors.cpp @@ -21,6 +21,7 @@ #include "hwasan_thread.h" #include "hwasan_poisoning.h" #include "hwasan_report.h" +#include "sanitizer_common/sanitizer_platform_limits_fuchsia.h" #include "sanitizer_common/sanitizer_platform_limits_posix.h" #include "sanitizer_common/sanitizer_allocator.h" #include "sanitizer_common/sanitizer_allocator_interface.h" @@ -175,6 +176,7 @@ return hwasan_malloc(size, &stack); } +#if !SANITIZER_FUCHSIA #if HWASAN_WITH_INTERCEPTORS #define INTERCEPTOR_ALIAS(RET, FN, ARGS...) \ extern "C" SANITIZER_INTERFACE_ATTRIBUTE RET WRAP(FN)(ARGS) \ @@ -346,3 +348,11 @@ inited = 1; } } // namespace __hwasan + +#else // !SANITIZER_FUCHSIA + +namespace __hwasan { +void InitializeInterceptors() {} +} // namespace __hwasan + +#endif // !SANITIZER_FUCHSIA