Skip to content

Commit 1a504c9

Browse files
authored
Merge pull request diffblue#2244 from diffblue/solver-Makefile-fix
fix ordering problem in solvers/Makefile
2 parents 9a0aa9c + 6f04d98 commit 1a504c9

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

src/common

-5
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,6 @@ else
158158
$(error Invalid setting for BUILD_ENV: $(BUILD_ENV_))
159159
endif
160160

161-
# select default solver to be minisat2 if no other is specified
162-
ifeq ($(BOOLEFORCE)$(CHAFF)$(GLUCOSE)$(IPASIR)$(LINGELING)$(MINISAT)$(MINISAT2)$(PICOSAT)$(CADICAL),)
163-
MINISAT2 = ../../minisat-2.2.1
164-
endif
165-
166161
ifneq ($(IPASIR),)
167162
CP_CXXFLAGS += -DHAVE_IPASIR
168163
endif

src/config.inc

+5
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ endif
3030
# when linking against an IPASIR solver.
3131
LIBSOLVER =
3232

33+
# select default solver to be minisat2 if no other is specified
34+
ifeq ($(BOOLEFORCE)$(CHAFF)$(GLUCOSE)$(IPASIR)$(LINGELING)$(MINISAT)$(MINISAT2)$(PICOSAT)$(CADICAL),)
35+
MINISAT2 = ../../minisat-2.2.1
36+
endif
37+
3338
ifneq ($(PICOSAT),)
3439
CP_CXXFLAGS += -DSATCHECK_PICOSAT
3540
endif

src/solvers/Makefile

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
include ../config.inc
2-
include ../common
32

43
ifneq ($(CHAFF),)
54
CHAFF_SRC=sat/satcheck_zchaff.cpp sat/satcheck_zcore.cpp
@@ -195,6 +194,8 @@ SRC = $(BOOLEFORCE_SRC) \
195194
smt2/smt2irep.cpp \
196195
# Empty last line
197196

197+
include ../common
198+
198199
INCLUDES += -I .. \
199200
$(CHAFF_INCLUDE) $(BOOLEFORCE_INCLUDE) $(MINISAT_INCLUDE) $(MINISAT2_INCLUDE) \
200201
$(IPASIR_INCLUDE) \

0 commit comments

Comments
 (0)