Skip to content

Commit

Permalink
Disable ICU on macOS, see: ClickHouse/ClickHouse@31e4dc0 (#221)
Browse files Browse the repository at this point in the history
  • Loading branch information
auxten authored Jun 5, 2024
1 parent 66ac8e9 commit f14db2c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion chdb/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ if [ "$(uname)" == "Darwin" ]; then
PYINIT_ENTRY="-Wl,-exported_symbol,_PyInit_${CHDB_PY_MOD}"
HDFS="-DENABLE_HDFS=0 -DENABLE_GSASL_LIBRARY=0 -DENABLE_KRB5=0"
MYSQL="-DENABLE_MYSQL=0"
ICU="-DENABLE_ICU=0"
# if Darwin ARM64 (M1, M2), disable AVX
if [ "$(uname -m)" == "arm64" ]; then
CMAKE_TOOLCHAIN_FILE="-DCMAKE_TOOLCHAIN_FILE=cmake/darwin/toolchain-aarch64.cmake"
Expand Down Expand Up @@ -53,6 +54,7 @@ elif [ "$(uname)" == "Linux" ]; then
UNWIND="-DUSE_UNWIND=1"
JEMALLOC="-DENABLE_JEMALLOC=1"
PYINIT_ENTRY="-Wl,-ePyInit_${CHDB_PY_MOD}"
ICU="-DENABLE_ICU=1"
# only x86_64, enable AVX and AVX2, enable embedded compiler
if [ "$(uname -m)" == "x86_64" ]; then
CPU_FEATURES="-DENABLE_AVX=1 -DENABLE_AVX2=1 -DENABLE_SIMDJSON=1"
Expand Down Expand Up @@ -84,7 +86,7 @@ cmake -DCMAKE_BUILD_TYPE=${build_type} -DENABLE_THINLTO=0 -DENABLE_TESTS=0 -DENA
-DENABLE_LIBRARIES=0 -DENABLE_RUST=0 \
${GLIBC_COMPATIBILITY} \
-DENABLE_UTILS=0 ${LLVM} ${UNWIND} \
-DENABLE_ICU=1 ${JEMALLOC} \
${ICU} ${JEMALLOC} \
-DENABLE_PARQUET=1 -DENABLE_ROCKSDB=1 -DENABLE_SQLITE=1 -DENABLE_VECTORSCAN=1 \
-DENABLE_PROTOBUF=1 -DENABLE_THRIFT=1 \
-DENABLE_RAPIDJSON=1 \
Expand Down

0 comments on commit f14db2c

Please sign in to comment.