build.sh 559 B

12345678910111213141516171819
  1. #! /bin/bash
  2. #
  3. # Copyright 2017 James E. King III
  4. # Distributed under the Boost Software License, Version 1.0.
  5. # (See accompanying file LICENSE_1_0.txt or copy at
  6. # http://www.boost.org/LICENSE_1_0.txt)
  7. #
  8. # Bash script to run in travis to perform a bjam build
  9. # cwd should be $BOOST_ROOT/libs/$SELF before running
  10. #
  11. set -ex
  12. # default language level: c++03
  13. if [[ -z "$CXXSTD" ]]; then
  14. CXXSTD=03
  15. fi
  16. $BOOST_ROOT/b2 . toolset=$TOOLSET cxxstd=$CXXSTD $CXXFLAGS $DEFINES $LINKFLAGS $TESTFLAGS $B2_ADDRESS_MODEL $B2_LINK $B2_THREADING $B2_VARIANT -j3 $*