summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2022-02-14 17:30:11 -0800
committerQi Wang <interwq@gmail.com>2022-02-15 10:10:11 -0800
commit063d134aeb4807872f45a3b7e6b43bed8f6320a2 (patch)
tree66a9b8ba346ffd6b611599ecbce8bf84a2fd396a
parenta4e81221cceeb887708d53015d3d1f1f9642980a (diff)
downloadjemalloc-063d134aeb4807872f45a3b7e6b43bed8f6320a2.tar.gz
Properly detect background thread support on Darwin.
When cross-compile, the host type / abi should be checked to determine background thread compatibility.
-rw-r--r--configure.ac3
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 0661005d..abcd91d2 100644
--- a/configure.ac
+++ b/configure.ac
@@ -2394,7 +2394,8 @@ fi
dnl ============================================================================
dnl Enable background threads if possible.
-if test "x${have_pthread}" = "x1" -a "x${je_cv_os_unfair_lock}" != "xyes" ; then
+if test "x${have_pthread}" = "x1" -a "x${je_cv_os_unfair_lock}" != "xyes" -a \
+ "x${abi}" != "xmacho" ; then
AC_DEFINE([JEMALLOC_BACKGROUND_THREAD], [ ], [ ])
fi