diff --git a/.github/scripts/python_wheels/cibw_before_all.sh b/.github/scripts/python_wheels/cibw_before_all.sh index 4bab03d59a..beb811dedc 100644 --- a/.github/scripts/python_wheels/cibw_before_all.sh +++ b/.github/scripts/python_wheels/cibw_before_all.sh @@ -8,6 +8,7 @@ set -x PYTHON_VERSION="$1" PROJECT_DIR="$2" +WHEEL_BUILD_JOBS=2 export PYTHON="python${PYTHON_VERSION}" @@ -32,17 +33,17 @@ BOOST_PREFIX="$HOME/opt/boost" ./bootstrap.sh --prefix=${BOOST_PREFIX} if [ "$(uname)" == "Linux" ]; then - ./b2 install --prefix=${BOOST_PREFIX} -d0 --with-graph \ + ./b2 -j${WHEEL_BUILD_JOBS} install --prefix=${BOOST_PREFIX} -d0 --with-graph \ --with-move --with-optional --with-program_options --with-random \ --with-serialization --with-smart_ptr --with-timer --with-chrono elif [ "$(uname)" == "Darwin" ]; then - ./b2 install --prefix=${BOOST_PREFIX} -d0 --with-graph \ + ./b2 -j${WHEEL_BUILD_JOBS} install --prefix=${BOOST_PREFIX} -d0 --with-graph \ --with-move --with-optional --with-program_options --with-random \ --with-serialization --with-smart_ptr --with-timer --with-chrono \ architecture=arm \ cxxflags="-mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET}" \ linkflags="-mmacosx-version-min=${MACOSX_DEPLOYMENT_TARGET}" - ./b2 install --prefix=${BOOST_PREFIX}/x86 -d0 --with-graph \ + ./b2 -j${WHEEL_BUILD_JOBS} install --prefix=${BOOST_PREFIX}/x86 -d0 --with-graph \ --with-move --with-optional --with-program_options --with-random \ --with-serialization --with-smart_ptr --with-timer --with-chrono \ architecture=x86 \ @@ -102,11 +103,5 @@ doxygen build/doc/Doxyfile # Install the Python wrapper module and generate Python stubs cd $PROJECT_DIR/build/python -if [ "$(uname)" == "Linux" ]; then - make -j $(nproc) install - make -j $(nproc) python-stubs -elif [ "$(uname)" == "Darwin" ]; then - make -j $(sysctl -n hw.logicalcpu) install - make -j $(sysctl -n hw.logicalcpu) python-stubs -fi - +make -j${WHEEL_BUILD_JOBS} install +make -j${WHEEL_BUILD_JOBS} python-stubs diff --git a/gtsam/base/std_optional_serialization.h b/gtsam/base/std_optional_serialization.h index 322fba1e2a..3a8f059ca5 100644 --- a/gtsam/base/std_optional_serialization.h +++ b/gtsam/base/std_optional_serialization.h @@ -28,7 +28,7 @@ #include /** A bunch of declarations to deal with gcc bug - * The compiler has a difficult time distinguisihing between: + * The compiler has a difficult time distinguishing between: * * template