From 4e7b8b10ec284e4a381d1aff031137b8a4ac58ed Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Fri, 20 Oct 2017 16:47:38 +0200 Subject: Update installation instructions with GNU make bootstrap --- BOOTSTRAP-UNIX.cli | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'BOOTSTRAP-UNIX.cli') 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 -- cgit v1.1