Skip to content

Commit 7eb99a8

Browse files
committed
gitian: Reduce build time for boost windows dependency
Build only the mt-s (multithreaded, static runtime link) variant of the library. This cuts the build time in half. Also prevent unpacked boost from ending up in output directory, checking and hashing all the source files as output files this takes a lot of time and is pointless.
1 parent 714cdec commit 7eb99a8

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

contrib/gitian-descriptors/boost-win32.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ files:
1616
- "boost-mingw-gas-cross-compile-2013-03-03.patch"
1717
script: |
1818
# Defines
19-
INSTALLPREFIX="$OUTDIR/staging/boost"
19+
INSTALLPREFIX="$HOME/install"
2020
HOST=i686-w64-mingw32
2121
# Input Integrity Check
2222
echo "fff00023dd79486d444c8e29922f4072e1d451fc5a4d2b6075852ead7f2b7b52 boost_1_55_0.tar.bz2" | shasum -c
@@ -57,10 +57,9 @@ script: |
5757
# Note: Might need these options in the future for 64bit builds.
5858
# "Please note that address-model=64 must be given to bjam command line on 64bit Windows for 64bit build; otherwise 32bit code will be generated."
5959
# "For cross-compiling the lib you must specify certain additional properties at bjam command line: target-os, abi, binary-format, architecture and address-model."
60-
./bjam toolset=gcc binary-format=pe target-os=windows threadapi=win32 threading=multi variant=release link=static --user-config=user-config.jam --without-mpi --without-python -sNO_BZIP2=1 -sNO_ZLIB=1 --layout=tagged --build-type=complete --prefix="$INSTALLPREFIX" $MAKEOPTS install
60+
./bjam toolset=gcc binary-format=pe target-os=windows threadapi=win32 threading=multi variant=release link=static runtime-link=static --user-config=user-config.jam --without-mpi --without-python -sNO_BZIP2=1 -sNO_ZLIB=1 --layout=tagged --build-type=complete --prefix="$INSTALLPREFIX" $MAKEOPTS install
6161
6262
cd "$INSTALLPREFIX"
6363
export LD_PRELOAD=/usr/lib/faketime/libfaketime.so.1
6464
export FAKETIME=$REFERENCE_DATETIME
65-
zip -r boost-win32-1.55.0-gitian-r6.zip *
66-
cp boost-win32-1.55.0-gitian-r6.zip $OUTDIR
65+
zip -r $OUTDIR/boost-win32-1.55.0-gitian-r6.zip *

0 commit comments

Comments
 (0)