diff options
author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2019-03-01 02:06:58 +0000 |
---|---|---|
committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2019-03-01 02:06:58 +0000 |
commit | 09934ba5467c0bcbb788948c8cbf2a06d89a9dbd (patch) | |
tree | cef4e5ff20e6445f972a47f2d45f803944e99b5c /lib/hwasan | |
parent | 1c36ae076800f4eb44d0683776fba650d04b6126 (diff) | |
download | compiler-rt-09934ba5467c0bcbb788948c8cbf2a06d89a9dbd.tar.gz |
[hwasan] Disable vfork code when building w/o interceptors.
Don't define vfork when OMPILER_RT_HWASAN_WITH_INTERCEPTORS=OFF.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@355165 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/hwasan')
-rw-r--r-- | lib/hwasan/hwasan_interceptors_vfork.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/hwasan/hwasan_interceptors_vfork.S b/lib/hwasan/hwasan_interceptors_vfork.S index a980fbd01..13d0829c0 100644 --- a/lib/hwasan/hwasan_interceptors_vfork.S +++ b/lib/hwasan/hwasan_interceptors_vfork.S @@ -1,6 +1,6 @@ #include "sanitizer_common/sanitizer_asm.h" -#if defined(__linux__) +#if defined(__linux__) && HWASAN_WITH_INTERCEPTORS #define COMMON_INTERCEPTOR_SPILL_AREA __hwasan_extra_spill_area #define COMMON_INTERCEPTOR_HANDLE_VFORK __hwasan_handle_vfork #include "sanitizer_common/sanitizer_common_interceptors_vfork_aarch64.inc.S" |