diff options
author | Damien George <damien.p.george@gmail.com> | 2014-02-12 20:53:00 +0000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2014-02-12 20:53:00 +0000 |
commit | 648d9e64479189a9fd9d9f3da05c49e8fd57cb40 (patch) | |
tree | ffcfc1e8c8a47c1798ea1c14e26f20b05ac6fea9 /unix | |
parent | 520e2f58a559c356ea540a5da4e9a585649aecc6 (diff) | |
parent | 5be1b2873be6bcc60d7c08917fa9ba6849e1b910 (diff) | |
download | micropython-648d9e64479189a9fd9d9f3da05c49e8fd57cb40.tar.gz micropython-648d9e64479189a9fd9d9f3da05c49e8fd57cb40.zip |
Merge pull request #279 from pfalcon/make-copt
unix Makefile: Split off optimization options to COPT variable.
Diffstat (limited to 'unix')
-rw-r--r-- | unix/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/unix/Makefile b/unix/Makefile index 1ce00eb28f..7bca495c26 100644 --- a/unix/Makefile +++ b/unix/Makefile @@ -11,7 +11,7 @@ QSTR_DEFS = qstrdefsport.h include ../py/py.mk # compiler settings -CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) +CFLAGS = -I. -I$(PY_SRC) -Wall -Werror -ansi -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT) LDFLAGS = $(LDFLAGS_MOD) -lm -Wl,-Map=$@.map,--cref ifeq ($(MICROPY_MOD_TIME),1) @@ -27,9 +27,10 @@ endif # Debugging/Optimization ifdef DEBUG -CFLAGS += -O0 -g +CFLAGS += -g +COPT = -O0 else -CFLAGS += -Os #-DNDEBUG +COPT = -Os #-DNDEBUG endif # source files |