Skip to content

Commit 33693d8

Browse files
Merge pull request #725 from smowton/boost_download
Switch to using Boost header-only tarball
2 parents 36851e1 + e16f583 commit 33693d8

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ libzip/
5151
zlib/
5252
minisat*/
5353
glucose-syrup/
54+
boost-include/
5455

5556
# flex/bison generated files
5657
src/ansi-c/ansi_c_lex.yy.cpp

.travis.yml

+3-5
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,6 @@ matrix:
3939
- libwww-perl
4040
- g++-5
4141
- libubsan0
42-
- libboost-system-dev
43-
- libboost-filesystem-dev
4442
before_install:
4543
- mkdir bin ; ln -s /usr/bin/gcc-5 bin/gcc
4644
# env: COMPILER=g++-5 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover -fno-omit-frame-pointer"
@@ -60,8 +58,6 @@ matrix:
6058
- clang-3.7
6159
- libstdc++-5-dev
6260
- libubsan0
63-
- libboost-system-dev
64-
- libboost-filesystem-dev
6561
before_install:
6662
- mkdir bin ; ln -s /usr/bin/clang-3.7 bin/gcc
6763
# env: COMPILER=clang++-3.7 SAN_FLAGS="-fsanitize=undefined -fno-sanitize-recover=undefined,integer -fno-omit-frame-pointer"
@@ -74,7 +70,9 @@ script:
7470
- if [ -L bin/gcc ] ; then export PATH=$PWD/bin:$PATH ; fi ;
7571
COMMAND="make -C src minisat2-download" &&
7672
eval ${PRE_COMMAND} ${COMMAND} &&
77-
COMMAND="make -C src CXX=$COMPILER CXXFLAGS=\"-Wall -O2 -g -Werror -Wno-deprecated-register -pedantic -Wno-sign-compare\" -j2" &&
73+
COMMAND="make -C src boost-download" &&
74+
eval ${PRE_COMMAND} ${COMMAND} &&
75+
COMMAND="make -C src CXX=$COMPILER CXXFLAGS=\"-Wall -O2 -g -Werror -Wno-deprecated-register -pedantic -Wno-sign-compare -DUSE_BOOST\" -j2" &&
7876
eval ${PRE_COMMAND} ${COMMAND} &&
7977
COMMAND="env UBSAN_OPTIONS=print_stacktrace=1 make -C regression test" &&
8078
eval ${PRE_COMMAND} ${COMMAND} &&

src/Makefile

+9
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,13 @@ glucose-download:
8484
@(cd ../glucose-syrup; patch -p1 < ../scripts/glucose-syrup-patch)
8585
@rm glucose-syrup.tgz
8686

87+
boost-download:
88+
@echo "Downloading boost headers"
89+
@lwp-download "http://storage.googleapis.com/diffblue-mirror/boost/boost_1.63_headers.tar.bz2?GoogleAccessId=diffbluemaster@diffblue-cr.iam.gserviceaccount.com&Expires=1542631994&Signature=X2GwPSm1dR8IPGP0D5JoyDmOnL%2Br4F7AI7NUA7SbmOAowMC0JS7Q5A6%2BkQziUzQa88zpddr5gSRbDOLqdoGzwLrYgPNtURS5dJ7l1q6xfJWSS%2FYf8be%2FSbdfLVN8qcXKCsfDe05Hqf%2Bz2cksqjQ1H6L0syj43rftbW4%2F7tp355%2BkinCeE466ulJeyru3CK%2F3RGX2Ul6ZQV6lNxkit1m6QM5BRtLbUQ1GOW0GCK9fWH2fry2n7kRVBCM3oz8fX62kLdKYlaXCf%2BvvXs9hOOmcQurL%2Fa4DCJYoClX%2BpznqXVmjUY%2FI3pD4HlRKbCeiPnoC6de2i1uxFNSVTBpG3w%2BtfA%3D%3D"
90+
@tar xfj boost_1.63_headers.tar.bz2
91+
@rm -Rf ../boost-include
92+
@mkdir ../boost-include
93+
@mv boost ../boost-include/boost
94+
@rm boost_1.63_headers.tar.bz2
95+
8796
.PHONY: minisat2-download glucose-download

src/common

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
MAKEFILES_WITHOUT_DEPS = $(filter-out %.d, $(MAKEFILE_LIST))
2+
THIS_DIR = $(abspath $(dir $(lastword $(MAKEFILES_WITHOUT_DEPS))))
3+
14
# Build platform
25
# (use one of AUTO, Unix, OSX, OSX_Universal, MSVC, Cygwin, MinGW)
36

@@ -155,6 +158,8 @@ first_target: all
155158

156159
HOSTCXX ?= $(CXX)
157160

161+
BOOST_DIR = $(abspath $(THIS_DIR)/../boost-include)
162+
INCLUDES += -I$(BOOST_DIR)
158163
CP_CFLAGS += $(CFLAGS) $(INCLUDES)
159164
CP_CXXFLAGS += $(CXXFLAGS) $(INCLUDES)
160165

@@ -207,4 +212,3 @@ D_FILES1 = $(SRC:.c=.d)
207212
D_FILES = $(D_FILES1:.cpp=.d)
208213

209214
-include $(D_FILES)
210-

0 commit comments

Comments
 (0)