Skip to content

Commit 3e7d665

Browse files
authoredMar 1, 2021
Merge bootstrap.sh from develop.
1 parent dd26db5 commit 3e7d665

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed
 

‎bootstrap.sh

+12-6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/sh
2-
# Copyright 2019-2020 Rene Rivera
2+
# Copyright 2019-2021 René Ferdinand Rivera Morell
33
# Copyright (C) 2005, 2006 Douglas Gregor.
44
# Copyright (C) 2006 The Trustees of Indiana University
55
#
@@ -142,7 +142,9 @@ done
142142

143143
if test "x$want_help" = xyes; then
144144
cat <<EOF
145-
\`./bootstrap.sh' prepares Boost for building on a few kinds of systems.
145+
\`./bootstrap.sh\' builds the Boost build system B2 and prepares Boost for
146+
building. This includes setting defaults in the project-config.jam which you
147+
can adjust prior to invoking B2.
146148
147149
Usage: $0 [OPTION]...
148150
@@ -152,7 +154,8 @@ Configuration:
152154
-h, --help display this help and exit
153155
--with-bjam=BJAM use existing Boost.Jam executable (bjam)
154156
[automatically built]
155-
--with-toolset=TOOLSET use specific B2 toolset
157+
--with-toolset=TOOLSET use specific TOOLSET to build B2 and as default
158+
for building Boost
156159
[automatically detected]
157160
--show-libraries show the set of libraries that require build
158161
and installation steps (i.e., those libraries
@@ -193,7 +196,7 @@ my_dir=$(dirname "$0")
193196

194197
# Determine the toolset, if not already decided
195198
if test "x$TOOLSET" = x; then
196-
guessed_toolset=`$my_dir/tools/build/src/engine/build.sh --guess-toolset`
199+
guessed_toolset=`CXX= CXXFLAGS= $my_dir/tools/build/src/engine/build.sh --guess-toolset`
197200
case $guessed_toolset in
198201
acc | clang | gcc | como | mipspro | pathscale | pgi | qcc | vacpp )
199202
TOOLSET=$guessed_toolset
@@ -223,7 +226,7 @@ rm -f config.log
223226
if test "x$BJAM" = x; then
224227
$ECHO "Building B2 engine.."
225228
pwd=`pwd`
226-
(cd "$my_dir/tools/build/src/engine" && ./build.sh)
229+
CXX= CXXFLAGS= "$my_dir/tools/build/src/engine/build.sh" ${TOOLSET}
227230
if [ $? -ne 0 ]; then
228231
echo
229232
echo "Failed to build B2 build engine"
@@ -400,7 +403,10 @@ To generate header files, run:
400403
401404
./b2 headers
402405
403-
To adjust configuration, edit 'project-config.jam'.
406+
The configuration generated uses ${TOOLSET} to build by default. If that is
407+
unintended either use the --with-toolset option or adjust configuration, by
408+
editing 'project-config.jam'.
409+
404410
Further information:
405411
406412
- Command line help:

0 commit comments

Comments
 (0)
Please sign in to comment.