Skip to content

Commit 218a3ed

Browse files
authored
Merge pull request #314 from chdb-io/disableAVX2
Disable AVX2 by default
2 parents 0b97de3 + 9fb86b5 commit 218a3ed

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chdb/build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ elif [ "$(uname)" == "Linux" ]; then
5757
PYINIT_ENTRY="-Wl,-ePyInit_${CHDB_PY_MOD}"
5858
ICU="-DENABLE_ICU=1"
5959
SED_INPLACE="sed -i"
60-
# only x86_64, enable AVX and AVX2, enable embedded compiler
60+
# only x86_64, enable AVX, enable embedded compiler
6161
if [ "$(uname -m)" == "x86_64" ]; then
62-
CPU_FEATURES="-DENABLE_AVX=1 -DENABLE_AVX2=1"
62+
CPU_FEATURES="-DENABLE_AVX=1 -DENABLE_AVX2=0"
6363
LLVM="-DENABLE_EMBEDDED_COMPILER=1 -DENABLE_DWARF_PARSER=1"
6464
else
6565
CPU_FEATURES="-DENABLE_AVX=0 -DENABLE_AVX2=0 -DNO_ARMV81_OR_HIGHER=1"

0 commit comments

Comments
 (0)