Skip to content

Commit

Permalink
Nicer cxx11 error message pass from bootstrap to build.
Browse files Browse the repository at this point in the history
Expanded error message for cxx11 requirment. And now passing bootstrap
arguments to build script to allow choosing toolset from bootstrap also.
  • Loading branch information
grafikrobot committed Feb 14, 2020
1 parent 89a7ac5 commit 415bede
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
# Build b2
echo "Building the B2 engine.."
pwd=`pwd`
( cd "./src/engine" && ./build.sh )
( cd "./src/engine" && ./build.sh "$*" )
if [ $? -ne 0 ]; then
echo
echo "Failed to build the B2 engine." 1>&2
Expand Down
4 changes: 4 additions & 0 deletions src/engine/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ if ! test_cxx11 $B2_TOOLSET ; then
error_exit "
A C++11 capable compiler is required for building the B2 engine.
Toolset '$B2_TOOLSET' does not appear to support C++11.
** Note, the C++11 capable compiler is _only_ required for building the B2
** engine. The B2 build system allows for using any C++ level and any other
** supported language and resource in your projects.
"
fi

Expand Down

0 comments on commit 415bede

Please sign in to comment.