mirror of
https://github.com/licsber/micropython.git
synced 2024-09-20 17:10:24 +08:00
unix/Makefile: Always enable -f*-sections regardless of DEBUG setting.
This commit is contained in:
parent
aa18ab7db2
commit
feed69aa5c
@ -47,10 +47,12 @@ ifdef DEBUG
|
|||||||
COPT ?= -O0
|
COPT ?= -O0
|
||||||
else
|
else
|
||||||
COPT ?= -Os
|
COPT ?= -Os
|
||||||
COPT += -fdata-sections -ffunction-sections
|
|
||||||
COPT += -DNDEBUG
|
COPT += -DNDEBUG
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Remove unused sections.
|
||||||
|
COPT += -fdata-sections -ffunction-sections
|
||||||
|
|
||||||
# Always enable symbols -- They're occasionally useful, and don't make it into the
|
# Always enable symbols -- They're occasionally useful, and don't make it into the
|
||||||
# final .bin/.hex/.dfu so the extra size doesn't matter.
|
# final .bin/.hex/.dfu so the extra size doesn't matter.
|
||||||
CFLAGS += -g
|
CFLAGS += -g
|
||||||
|
Loading…
Reference in New Issue
Block a user