Skip to content

Commit

Permalink
Merge pull request #8397 from tautschnig/cadical-NDEBUG
Browse files Browse the repository at this point in the history
Compile CaDiCaL with -DNDEBUG
  • Loading branch information
tautschnig authored Jul 29, 2024
2 parents 9dbbada + c0fd50b commit ffbd3eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion scripts/cadical_CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ add_library(cadical ${sources})

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

set_target_properties(
cadical
Expand Down
2 changes: 1 addition & 1 deletion src/solvers/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ solvers$(LIBEXT): $(OBJ) $(SOLVER_LIB)
$(LINKLIB)

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

-include smt2/smt2_solver$(DEPEXT)

Expand Down

0 comments on commit ffbd3eb

Please sign in to comment.