Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
648d9e64
Commit
648d9e64
authored
Feb 12, 2014
by
Damien George
Browse files
Merge pull request #279 from pfalcon/make-copt
unix Makefile: Split off optimization options to COPT variable.
parents
520e2f58
5be1b287
Changes
1
Hide whitespace changes
Inline
Side-by-side
unix/Makefile
View file @
648d9e64
...
...
@@ -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
C
FLAGS
+
=
-Os
#-DNDEBUG
C
OPT
=
-Os
#-DNDEBUG
endif
# source files
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment