diff --git a/Util/BuildTools/Setup.sh b/Util/BuildTools/Setup.sh index 24c15cb62..a9ad7972b 100755 --- a/Util/BuildTools/Setup.sh +++ b/Util/BuildTools/Setup.sh @@ -109,17 +109,15 @@ else --with-libraries=python,filesystem,system,program_options \ --with-python=${py2} --with-python-root=${py2_root} - EXTRA_B2_ARGS="" - if [ "${TRAVIS}" == "true" ] ; then + if ${TRAVIS} ; then echo "using python : ${pyv} : ${py2_root}/bin/python2 ;" > ${HOME}/user-config.jam else echo "using python : ${pyv} : ${py2_root}/bin/python2 ;" > project-config.jam - EXTRA_B2_ARGS="--ignore-user-config" fi - ./b2 "${EXTRA_B2_ARGS}" toolset="${BOOST_TOOLSET}" cxxflags="${BOOST_CFLAGS}" --prefix="../${BOOST_BASENAME}-install" -j "${CARLA_BUILD_CONCURRENCY}" stage release - ./b2 "${EXTRA_B2_ARGS}" toolset="${BOOST_TOOLSET}" cxxflags="${BOOST_CFLAGS}" --prefix="../${BOOST_BASENAME}-install" -j "${CARLA_BUILD_CONCURRENCY}" install - ./b2 "${EXTRA_B2_ARGS}" toolset="${BOOST_TOOLSET}" cxxflags="${BOOST_CFLAGS}" --prefix="../${BOOST_BASENAME}-install" -j "${CARLA_BUILD_CONCURRENCY}" --clean-all + ./b2 toolset="${BOOST_TOOLSET}" cxxflags="${BOOST_CFLAGS}" --prefix="../${BOOST_BASENAME}-install" -j ${CARLA_BUILD_CONCURRENCY} stage release + ./b2 toolset="${BOOST_TOOLSET}" cxxflags="${BOOST_CFLAGS}" --prefix="../${BOOST_BASENAME}-install" -j ${CARLA_BUILD_CONCURRENCY} install + ./b2 toolset="${BOOST_TOOLSET}" cxxflags="${BOOST_CFLAGS}" --prefix="../${BOOST_BASENAME}-install" -j ${CARLA_BUILD_CONCURRENCY} --clean-all # Get rid of python2 build artifacts completely & do a clean build for python3 popd >/dev/null @@ -145,15 +143,14 @@ else --with-libraries=python \ --with-python=${py3} --with-python-root=${py3_root} - if [ "${TRAVIS}" == "true" ] ; then + if ${TRAVIS} ; then echo "using python : ${pyv} : ${py3_root}/bin/python3 ;" > ${HOME}/user-config.jam else echo "using python : ${pyv} : ${py3_root}/bin/python3 ;" > project-config.jam - EXTRA_B2_ARGS="--ignore-user-config" fi - ./b2 "${EXTRA_B2_ARGS}" toolset="${BOOST_TOOLSET}" cxxflags="${BOOST_CFLAGS}" --prefix="../${BOOST_BASENAME}-install" -j "${CARLA_BUILD_CONCURRENCY}" stage release - ./b2 "${EXTRA_B2_ARGS}" toolset="${BOOST_TOOLSET}" cxxflags="${BOOST_CFLAGS}" --prefix="../${BOOST_BASENAME}-install" -j "${CARLA_BUILD_CONCURRENCY}" install + ./b2 toolset="${BOOST_TOOLSET}" cxxflags="${BOOST_CFLAGS}" --prefix="../${BOOST_BASENAME}-install" -j ${CARLA_BUILD_CONCURRENCY} stage release + ./b2 toolset="${BOOST_TOOLSET}" cxxflags="${BOOST_CFLAGS}" --prefix="../${BOOST_BASENAME}-install" -j ${CARLA_BUILD_CONCURRENCY} install popd >/dev/null