Skip to content

Commit e87bb9f

Browse files
authored
Merge pull request #371 from grafikrobot/bootstrap-cleanup
Adjust bootsrap for current B2 builds.
2 parents 971c987 + 26a61c1 commit e87bb9f

File tree

2 files changed

+13
-14
lines changed

2 files changed

+13
-14
lines changed

bootstrap.bat

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
SETLOCAL
44

5-
REM Copyright 2019 Rene Rivera
5+
REM Copyright 2019-2020 Rene Rivera
66
REM Copyright (C) 2009 Vladimir Prus
77
REM
88
REM Distributed under the Boost Software License, Version 1.0.
@@ -12,7 +12,7 @@ ECHO Building Boost.Build engine
1212
if exist ".\tools\build\src\engine\b2.exe" del tools\build\src\engine\b2.exe
1313
pushd tools\build\src\engine
1414

15-
call .\build.bat %* > ..\..\..\..\bootstrap.log
15+
call .\build.bat
1616
@ECHO OFF
1717

1818
popd
@@ -33,6 +33,7 @@ REM properly. Default to msvc if not specified.
3333
SET TOOLSET=msvc
3434

3535
IF "%1"=="gcc" SET TOOLSET=gcc
36+
IF "%1"=="clang" SET TOOLSET=clang
3637

3738
IF "%1"=="vc71" SET TOOLSET=msvc : 7.1
3839
IF "%1"=="vc8" SET TOOLSET=msvc : 8.0
@@ -88,7 +89,6 @@ goto :end
8889

8990
ECHO.
9091
ECHO Failed to build Boost.Build engine.
91-
ECHO Please consult bootstrap.log for further diagnostics.
9292
ECHO.
9393

9494
REM Set an error code to allow `bootstrap && b2`

bootstrap.sh

Lines changed: 10 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
# Copyright 2019 Rene Rivera
2+
# Copyright 2019-2020 Rene Rivera
33
# Copyright (C) 2005, 2006 Douglas Gregor.
44
# Copyright (C) 2006 The Trustees of Indiana University
55
#
@@ -152,7 +152,7 @@ Configuration:
152152
-h, --help display this help and exit
153153
--with-bjam=BJAM use existing Boost.Jam executable (bjam)
154154
[automatically built]
155-
--with-toolset=TOOLSET use specific Boost.Build toolset
155+
--with-toolset=TOOLSET use specific B2 toolset
156156
[automatically detected]
157157
--show-libraries show the set of libraries that require build
158158
and installation steps (i.e., those libraries
@@ -212,7 +212,7 @@ if test "x$TOOLSET" = x; then
212212
;;
213213

214214
* )
215-
# Not supported by Boost.Build
215+
# Not supported by B2
216216
;;
217217
esac
218218
fi
@@ -221,13 +221,12 @@ rm -f config.log
221221

222222
# Build bjam
223223
if test "x$BJAM" = x; then
224-
$ECHO -n "Building Boost.Build engine with toolset $TOOLSET... "
224+
$ECHO "Building B2 engine.."
225225
pwd=`pwd`
226-
(cd "$my_dir/tools/build/src/engine" && ./build.sh "$TOOLSET") > bootstrap.log 2>&1
226+
(cd "$my_dir/tools/build/src/engine" && ./build.sh)
227227
if [ $? -ne 0 ]; then
228228
echo
229-
echo "Failed to build Boost.Build build engine"
230-
echo "Consult 'bootstrap.log' for more details"
229+
echo "Failed to build B2 build engine"
231230
exit 1
232231
fi
233232
cd "$pwd"
@@ -327,14 +326,14 @@ if test -r "project-config.jam"; then
327326
counter=`expr $counter + 1`
328327
done
329328

330-
echo "Backing up existing Boost.Build configuration in project-config.jam.$counter"
329+
echo "Backing up existing B2 configuration in project-config.jam.$counter"
331330
mv "project-config.jam" "project-config.jam.$counter"
332331
fi
333332

334333
# Generate user-config.jam
335-
echo "Generating Boost.Build configuration in project-config.jam for $TOOLSET..."
334+
echo "Generating B2 configuration in project-config.jam for $TOOLSET..."
336335
cat > project-config.jam <<EOF
337-
# Boost.Build Configuration
336+
# B2 Configuration
338337
# Automatically generated by bootstrap.sh
339338
340339
import option ;
@@ -410,7 +409,7 @@ Further information:
410409
- Getting started guide:
411410
http://www.boost.org/more/getting_started/unix-variants.html
412411
413-
- Boost.Build documentation:
412+
- B2 documentation:
414413
http://www.boost.org/build/
415414
416415
EOF

0 commit comments

Comments
 (0)