Commit 5be1b287 authored by Paul Sokolovsky's avatar Paul Sokolovsky
Browse files

unix Makefile: Split off optimization options to COPT variable.

To allow easily try different optimization and configuration options
without patching any files.
parent 520e2f58
......@@ -11,7 +11,7 @@ QSTR_DEFS = qstrdefsport.h
include ../py/
# 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=$,--cref
ifeq ($(MICROPY_MOD_TIME),1)
......@@ -27,9 +27,10 @@ endif
# Debugging/Optimization
ifdef DEBUG
CFLAGS += -O0 -g
CFLAGS += -g
COPT = -O0
# source files
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment