Skip to content

Commit

Permalink
1
Browse files Browse the repository at this point in the history
  • Loading branch information
xinyiZzz committed May 15, 2024
1 parent 3a20f88 commit d4fd669
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,12 @@ if [[ ! -f "${TP_INCLUDE_DIR}/jemalloc/jemalloc_doris_with_prefix.h" ]]; then
fi
else
if [[ -z "${USE_JEMALLOC_HOOK}" ]]; then
USE_JEMALLOC_HOOK='OFF'
if [[ "$(uname -s)" != 'Darwin' ]]; then
USE_JEMALLOC_HOOK='OFF'
else
# compile jemalloc on mac have default prefix `je_`, so default use prefix jemalloc to ensure code uniformity.
USE_JEMALLOC_HOOK='ON'
fi
fi
# update jemalloc prefix
rm -rf "${TP_INCLUDE_DIR}/jemalloc/jemalloc.h"
Expand Down

0 comments on commit d4fd669

Please sign in to comment.