Commit c0fd50b
committed
Compile CaDiCaL with -DNDEBUG
Using CaDiCaL with CBMC showed substantially decreased performance
between versions 1.8.0 and 1.9.0. This has become apparent with Kani,
but also our THOROUGH tests changed from 7 minutes to just under 2 hours
in CI. The culprit is
arminbiere/cadical@69e7cfb,
which introduces expensive checks in `NDEBUG` blocks.
When using CMake, we need to make sure this flag is only used within
CaDiCaL's build and doesn't leak to some subset of the remaining build,
so use `PRIVATE` instead of `PUBLIC` with `target_compile_options`.1 parent bf58af8 commit c0fd50b
2 files changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
12 | | - | |
| 12 | + | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
281 | 281 | | |
282 | 282 | | |
283 | 283 | | |
284 | | - | |
| 284 | + | |
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
| |||
0 commit comments