Skip to content
Snippets Groups Projects
Commit 1e6fd9f2 authored by Damien George's avatar Damien George
Browse files

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.
parent d0db93cf
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ ifdef DEBUG
CFLAGS += -g
COPT = -O0
else
COPT = -Os -fdata-sections -ffunction-sections #-DNDEBUG
COPT = -Os -fdata-sections -ffunction-sections -DNDEBUG
# _FORTIFY_SOURCE is a feature in gcc/glibc which is intended to provide extra
# security for detecting buffer overflows. Some distros (Ubuntu at the very least)
# have it enabled by default.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment