Author: Fangrui Song Date: 2020-12-27T21:33:41-08:00 New Revision: 0b56e3cdda501b19bbfee6ee3899f72d9bce121c
URL: https://github.com/llvm/llvm-project/commit/0b56e3cdda501b19bbfee6ee3899f72d9bce121c DIFF: https://github.com/llvm/llvm-project/commit/0b56e3cdda501b19bbfee6ee3899f72d9bce121c.diff LOG: [sanitizer] Defined SANITIZER_TEST_HAS_PVALLOC only on glibc This simplifies the condition and makes it work on musl. Added: Modified: compiler-rt/lib/sanitizer_common/tests/sanitizer_test_utils.h Removed: ################################################################################ diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_test_utils.h b/compiler-rt/lib/sanitizer_common/tests/sanitizer_test_utils.h index 525b1e485852..016ce9e67d9f 100644 --- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_test_utils.h +++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_test_utils.h @@ -107,9 +107,7 @@ static inline uint32_t my_rand() { # define SANITIZER_TEST_HAS_MEMALIGN 0 #endif -#if !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__ANDROID__) && \ - !defined(__NetBSD__) && !defined(_WIN32) && \ - !(defined(__sun__) && defined(__svr4__)) +#if defined(__GLIBC__) # define SANITIZER_TEST_HAS_PVALLOC 1 # define SANITIZER_TEST_HAS_MALLOC_USABLE_SIZE 1 #else _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits