File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -36,6 +36,7 @@ BUILD_LOG=/tmp/boost.log
3636
3737mkdir -p " ${BUILD_DIR} " && cd " ${BUILD_DIR} "
3838
39+ echo " Downloading and extracting file..."
3940FILE_NAME=" boost_${VERSION// ./ _} "
4041URL=" https://sourceforge.net/projects/boost/files/boost/${VERSION} /${FILE_NAME} .tar.bz2/download"
4142wget " ${URL} " -qO- | tar jx
@@ -44,25 +45,30 @@ if [ ! -f "${FILE_NAME}/bootstrap.sh" ]; then
4445 exit 1
4546fi
4647
48+ echo " Downloaded and extracted file"
4749cd " ${FILE_NAME} "
4850
4951if [[ " ${TRAVIS_OS_NAME:- } " == " windows" ]] || [[ " ${RUNNER_OS:- } " == " Windows" ]]; then
52+ NPROC=3
5053 TOOLSET=" toolset=msvc"
51- NPROC=2
54+ VARIANT= " debug,release "
5255else
5356 # Linux and OSX version
5457 NPROC=$( nproc 2> /dev/null || sysctl -n hw.ncpu)
5558 TOOLSET=
59+ VARIANT=" release"
5660fi
5761
5862libraries=$( join , " ${required_libs[@]} " )
5963
64+ echo " Bootstrapping B2..."
6065if ! ./bootstrap.sh --with-libraries=" $libraries " threading=multi > " $BUILD_LOG " ; then
6166 cat " $BUILD_LOG " || true
6267 cat bootstrap.log
6368 exit 1
6469fi
65- if ! ./b2 link=" ${link} " ${TOOLSET} variant=release --prefix=" ${INSTALL_DIR} " -j${NPROC} install > " $BUILD_LOG " ; then
70+ echo " Building ${libraries} , variants ${VARIANT} to ${INSTALL_DIR} using ${TOOLSET} "
71+ if ! ./b2 link=" ${link} " ${TOOLSET} variant=" ${VARIANT} " --prefix=" ${INSTALL_DIR} " -j${NPROC} install > " $BUILD_LOG " ; then
6672 cat " $BUILD_LOG "
6773 exit 1
6874fi
You can’t perform that action at this time.
0 commit comments