diff options
author | Damien George <damien.p.george@gmail.com> | 2017-07-12 11:56:32 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2017-07-12 11:57:03 +1000 |
commit | 1e6fd9f2b4072873f5d6846b19b2ef0ccc5e4e52 (patch) | |
tree | fa4208150755437a9e166badb1b18fba54ca7b6e | |
parent | d0db93cf1ff8eb8b2db63da07dd14d86577eebd1 (diff) | |
download | micropython-1e6fd9f2b4072873f5d6846b19b2ef0ccc5e4e52.tar.gz micropython-1e6fd9f2b4072873f5d6846b19b2ef0ccc5e4e52.zip |
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.
-rw-r--r-- | unix/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/unix/Makefile b/unix/Makefile index be324dd3dd..83c79ac96d 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -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. |