silkworm icon indicating copy to clipboard operation
silkworm copied to clipboard

Option to build with asserts enabled

Open chfast opened this issue 1 year ago • 1 comments

It may be good for testing to have a release build with asserts enabled. However just unsetting NDEBUG macro globally makes the mdbx running very slowly. So we rather want to enable asserts in silkworm code only.

chfast avatar Feb 28 '24 10:02 chfast

There's also SILKWORM_ASSERT, which is checked even if NDEBUG is defined.

yperbasis avatar Feb 28 '24 12:02 yperbasis