This is an automated email from the ASF dual-hosted git repository.

dataroaring pushed a commit to branch branch-3.0
in repository https://gitbox.apache.org/repos/asf/doris.git

commit 761ec49c4712f2955ff28cbb3172122351f6b495
Author: Xinyi Zou <[email protected]>
AuthorDate: Thu May 16 11:38:56 2024 +0800

    [fix](memory) Fix BE compile in Mac with no prefix Jemalloc (#34886)
    
    compile jemalloc on mac have default prefix `je_`, so default use prefix 
jemalloc to ensure code uniformity.
---
 build.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/build.sh b/build.sh
index bec46bf6baf..4587b5a4b15 100755
--- a/build.sh
+++ b/build.sh
@@ -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"


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to