Skip to content

Commit ffbd3eb

Browse files
authored
Merge pull request #8397 from tautschnig/cadical-NDEBUG
Compile CaDiCaL with -DNDEBUG
2 parents 9dbbada + c0fd50b commit ffbd3eb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/cadical_CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ add_library(cadical ${sources})
99

1010
# Pass -DNBUILD to disable including the version information, which is not
1111
# needed since cbmc doesn't run the cadical binary
12-
target_compile_options(cadical PUBLIC -DNBUILD -DNFLEXIBLE)
12+
target_compile_options(cadical PRIVATE -DNBUILD -DNFLEXIBLE -DNDEBUG)
1313

1414
set_target_properties(
1515
cadical

src/solvers/Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ solvers$(LIBEXT): $(OBJ) $(SOLVER_LIB)
281281
$(LINKLIB)
282282

283283
../../cadical/build/libcadical$(LIBEXT):
284-
$(MAKE) $(MAKEARGS) -C $(CADICAL)/build libcadical.a CXX="$(CXX)" CXXFLAGS="$(CP_CXXFLAGS) -DNFLEXIBLE"
284+
$(MAKE) $(MAKEARGS) -C $(CADICAL)/build libcadical.a CXX="$(CXX)" CXXFLAGS="$(CP_CXXFLAGS) -DNFLEXIBLE -DNDEBUG"
285285

286286
-include smt2/smt2_solver$(DEPEXT)
287287

0 commit comments

Comments
 (0)