1
0
mirror of https://github.com/facebook/zstd.git synced 2025-07-29 11:21:22 +03:00

Allow user to override ASAN/MSAN detection

Rename ADDRESS_SANITIZER -> ZSTD_ADDRESS_SANITIZER and same for
MEMORY_SANITIZER. Also set it to 0/1 instead of checking for defined.
This allows the user to override ASAN/MSAN detection for platforms that
don't support it.
This commit is contained in:
Nick Terrell
2020-09-24 16:04:21 -07:00
parent 88fac5d514
commit caecd8c211
3 changed files with 29 additions and 18 deletions

View File

@ -34,6 +34,8 @@ libzstd:
-DMEM_FORCE_MEMORY_ACCESS=0 \
-D__GNUC__ \
-DSTATIC_BMI2=0 \
-DZSTD_ADDRESS_SANITIZER=0 \
-DZSTD_MEMORY_SANITIZER=0 \
-UZSTD_NO_INLINE \
-UNO_PREFETCH \
-U__cplusplus \