tools: Add condition to check if bjam exists.

This commit is contained in:
Jason Volk 2020-02-25 15:01:40 -08:00
parent b07f8d633e
commit 00734c3a19
1 changed files with 6 additions and 1 deletions

View File

@ -185,7 +185,12 @@ B2FLAGS+=" $_BCXXFLAGS"
### Install should go right into this local submodule repository
run ./bootstrap.sh --prefix=$PWD --libdir=$PWD/lib --with-libraries=$BLIBS $BSFLAGS
run ./bjam --clean $B2FLAGS
BJAM="./bjam"
if test -f "$BJAM"; then
run $BJAM --clean $B2FLAGS
fi
run ./b2 -d0 headers $B2FLAGS
run ./b2 -d0 install $B2FLAGS