aboutsummaryrefslogtreecommitdiff
path: root/BOOTSTRAP-UNIX.cli
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2017-10-20 16:47:38 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2017-10-20 16:47:38 +0200
commit4e7b8b10ec284e4a381d1aff031137b8a4ac58ed (patch)
tree0e3cc019f296767e43eb397f6e52ea583776f5f7 /BOOTSTRAP-UNIX.cli
parenteb55f9b9b5df5678df0b30f4a0af9f35fcbc4be4 (diff)
Update installation instructions with GNU make bootstrap
Diffstat (limited to 'BOOTSTRAP-UNIX.cli')
-rw-r--r--BOOTSTRAP-UNIX.cli22
1 files changed, 19 insertions, 3 deletions
diff --git a/BOOTSTRAP-UNIX.cli b/BOOTSTRAP-UNIX.cli
index 5879a33..d3b0f6d 100644
--- a/BOOTSTRAP-UNIX.cli
+++ b/BOOTSTRAP-UNIX.cli
@@ -63,9 +63,7 @@ Next you can either perform the rest of the steps manually or, if after
reviewing the steps, you are happy with using the defaults, run the
\c{build.sh} shell script. It performs (and echoes) the same set of steps as
outlined below but only allows you to customize the compiler, installation
-directory, and a few other things (run \c{build.sh -h} for usage). You can
-also specify an alternative package repository with the \c{BUILD2_REPO}
-environment variable.
+directory, and a few other things (run \c{build.sh -h} for usage).
For example, this command will use \c{g++-5} and install the toolchain into
\c{/usr/local/}.
@@ -80,6 +78,14 @@ While this will use Clang and install into \c{/opt/build2}:
$ ./build.sh --install-dir /opt/build2 --sudo sudo clang++
\
+If you would like to speed the process up by compiling in parallel, then you
+can instruct \c{build.sh} to bootstrap using GNU make (can be called \c{gmake}
+instead of \c{make} on some platforms), for example:
+
+\
+$ ./build.sh --make make --make -j8 g++
+\
+
Note also that at about half way through (\c{bpkg fetch} at step 4 below) the
script will stop and prompt you to verify the authenticity of the repository
certificate. To run the script unattended you can specify the certificate
@@ -118,6 +124,16 @@ $ ./bootstrap.sh g++
$ build2/b-boot --version
\
+Alternatively, we can use the \c{bootstrap.gmake} GNU makefile to bootstrap
+in parallel:
+
+\
+$ cd build2
+$ make -f bootstrap.gmake -j 8 CXX=g++
+
+$ build2/b-boot --version
+\
+
|
\li|\n\b{2. Bootstrap, Phase 2}\n