File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -167,12 +167,13 @@ function build_blosc {
167167 https://patch-diff.githubusercontent.com/raw/Blosc/c-blosc/pull/318.patch
168168 python3 -m patch -p 1 -d c-blosc-1.21.0 blosc-pthread.patch
169169
170- # SSE2 support
171- # https://github.com/Blosc/c-blosc/issues/334
172- DEACTIVATE_SSE2=OFF
173170 if [[ " ${CMAKE_OSX_ARCHITECTURES-} " == * " arm64" * ]]; then
171+ # SSE2 support
172+ # https://github.com/Blosc/c-blosc/issues/334
174173 # error: SSE2 is not supported by the target architecture/platform and/or this compiler.
175- DEACTIVATE_SSE2=ON
174+ local architecture_specific_flags=(" -DDEACTIVATE_SSE2=ON" )
175+ else
176+ local architecture_specific_flags=(" -DDEACTIVATE_SSE2=OFF" " -DDEACTIVATE_AVX512=ON" )
176177 fi
177178
178179 mkdir build-blosc
@@ -181,7 +182,7 @@ function build_blosc {
181182 CMAKE_BIN=" $( ${PY_BIN} -m pip show cmake 2> /dev/null | grep Location | cut -d' ' -f2) /cmake/data/bin/"
182183 PATH=${CMAKE_BIN} :${PATH} cmake \
183184 -DDEACTIVATE_SNAPPY=ON \
184- -DDEACTIVATE_SSE2= ${DEACTIVATE_SSE2} \
185+ " ${architecture_specific_flags[@]} " \
185186 -DBUILD_SHARED=OFF \
186187 -DBUILD_TESTS=OFF \
187188 -DBUILD_BENCHMARKS=OFF \
You can’t perform that action at this time.
0 commit comments