Skip to content

Commit

Permalink
Unix: Patch Blosc (Pthreads)
Browse files Browse the repository at this point in the history
  • Loading branch information
ax3l committed Jun 16, 2021
1 parent 5d52fbd commit e43141d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion library_builders.sh
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function install_buildessentials {
python -m pip install -U pip setuptools wheel
python -m pip install -U scikit-build
python -m pip install -U cmake
python -m pip install -U "patch==1.*"

touch buildessentials-stamp
}
Expand Down Expand Up @@ -130,6 +131,12 @@ function build_blosc {
file c-blosc*.tar.gz
tar -xzf c-blosc*.tar.gz
rm c-blosc*.tar.gz

# Patch PThread Propagation
curl -sLo blosc-pthread.patch \
https://patch-diff.githubusercontent.com/raw/Blosc/c-blosc/pull/318.patch
python -m patch -p 1 -d c-blosc-1.21.0 blosc-pthread.patch

mkdir build-c-blosc
cd build-c-blosc
PY_BIN=$(which python)
Expand All @@ -139,7 +146,6 @@ function build_blosc {
-DBUILD_SHARED=OFF \
-DBUILD_TESTS=OFF \
-DBUILD_BENCHMARKS=OFF \
-DTHREADS_PREFER_PTHREAD_FLAG=ON \
-DCMAKE_VERBOSE_MAKEFILE=ON \
-DCMAKE_INSTALL_PREFIX=${BUILD_PREFIX} \
../c-blosc-*
Expand Down

0 comments on commit e43141d

Please sign in to comment.