Skip to content

Commit 1e6fd9f

Browse files
committed
unix/Makefile: Disable assertions in the standard unix executable.
Reasons to disable: - the code is relatively robust so doesn't need full checking in the main executable, and the coverage build is used for full testing with assertions still enabled; - reduces code size noticeably, by 27k for x86-64 and 20k for x86; - allows to more easily track changes in code size, since assertions can skew things.
1 parent d0db93c commit 1e6fd9f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

unix/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ ifdef DEBUG
3030
CFLAGS += -g
3131
COPT = -O0
3232
else
33-
COPT = -Os -fdata-sections -ffunction-sections #-DNDEBUG
33+
COPT = -Os -fdata-sections -ffunction-sections -DNDEBUG
3434
# _FORTIFY_SOURCE is a feature in gcc/glibc which is intended to provide extra
3535
# security for detecting buffer overflows. Some distros (Ubuntu at the very least)
3636
# have it enabled by default.

0 commit comments

Comments
 (0)