mirror of
https://github.com/tmux/tmux.git
synced 2026-07-29 19:57:54 +00:00
Merge pull request #5423 from ilyagr/jemalloc-and-asan-mutually-exclusive
configure.ac: don't enable jemalloc if ASAN enabled on macOS, error if both enabled
This commit is contained in:
11
configure.ac
11
configure.ac
@@ -635,13 +635,20 @@ AC_ARG_ENABLE(
|
||||
)
|
||||
try_jemalloc=no
|
||||
require_jemalloc=no
|
||||
if test "x$enable_asan" = xyes && test "x$enable_jemalloc" = xyes; then
|
||||
AC_MSG_ERROR([--enable-asan and --enable-jemalloc cannot be used together])
|
||||
fi
|
||||
if test "x$enable_jemalloc" = xyes; then
|
||||
try_jemalloc=yes
|
||||
elif test "x$enable_jemalloc" = x; then
|
||||
case "$host_os" in
|
||||
*darwin*)
|
||||
try_jemalloc=yes
|
||||
require_jemalloc=yes
|
||||
if test "x$enable_asan" = xyes; then
|
||||
enable_jemalloc=no
|
||||
else
|
||||
try_jemalloc=yes
|
||||
require_jemalloc=yes
|
||||
fi
|
||||
;;
|
||||
esac
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user