[sanitizers] Define SANITIZER_INTERCEPTOR_HOOKS on FreeBSD
authorAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Wed, 17 Feb 2021 10:36:41 +0000 (10:36 +0000)
committerAlex Richardson <Alexander.Richardson@cl.cam.ac.uk>
Wed, 17 Feb 2021 10:36:47 +0000 (10:36 +0000)
commitca9815fc247cc738f3ca7c8d5f482049371ca6e1
treea53b15b703aae1985ec8e17d4dd0ad6756f5c039
parentca4485d9fc3449f7bb9522ee16ccf63f2219732c
[sanitizers] Define SANITIZER_INTERCEPTOR_HOOKS on FreeBSD

This fixes the weak_hooks.cpp test on FreeBSD. Since this feature appears
to be supported on almost all platforms, it might also make sense to turn
it into an opt-out list instead of being opt-in.

Reviewed By: krytarowski

Differential Revision: https://reviews.llvm.org/D96255
compiler-rt/lib/sanitizer_common/sanitizer_platform_interceptors.h