1
1
mirror of https://github.com/rui314/mold.git synced 2024-11-13 09:39:13 +03:00

Enable assert() for release builds

Our assert() statements are pretty cheap. We want to enable them
even for release builds.

By default, cmake passes -DNDEBUG to disable assert() for release
builds. So, in this patch, we undefine it to re-enable assertions.
This commit is contained in:
Rui Ueyama 2021-07-20 21:13:03 +09:00
parent 9e78e4a792
commit 33fef23ffb

2
mold.h
View File

@ -4,6 +4,8 @@
#define _GNU_SOURCE
#endif
#undef NDEBUG
#include "elf.h"
#include <atomic>