diff options
| author | Damien George <damien@micropython.org> | 2021-12-09 12:53:09 +1100 |
|---|---|---|
| committer | Damien George <damien@micropython.org> | 2021-12-09 12:53:09 +1100 |
| commit | 9ffb1ad2f83b2147cc4dc6385713aab1d4242ded (patch) | |
| tree | 34d154e5aef166932c3819679d6d07d8ab307c34 | |
| parent | efde4b2c756033715919ec80084f3399e8d16921 (diff) | |
unix/Makefile: Use -Og instead of -O0 for debug builds.
For the coverage build this reduces the binary size to about 1/4 of its
size, and seems to help gcov/lcov coverage analysis so that it doesn't miss
lines.
Signed-off-by: Damien George <damien@micropython.org>
| -rw-r--r-- | ports/unix/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ports/unix/Makefile b/ports/unix/Makefile index 60e37ade0..f829838ab 100644 --- a/ports/unix/Makefile +++ b/ports/unix/Makefile @@ -44,7 +44,7 @@ CFLAGS += $(INC) $(CWARN) -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT) -I$(VARIANT_DI # Debugging/Optimization ifdef DEBUG -COPT ?= -O0 +COPT ?= -Og else COPT ?= -Os COPT += -DNDEBUG |
