Skip to content

Commit 9ffb1ad

Browse files
committed
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>
1 parent efde4b2 commit 9ffb1ad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ports/unix/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ CFLAGS += $(INC) $(CWARN) -std=gnu99 -DUNIX $(CFLAGS_MOD) $(COPT) -I$(VARIANT_DI
4444

4545
# Debugging/Optimization
4646
ifdef DEBUG
47-
COPT ?= -O0
47+
COPT ?= -Og
4848
else
4949
COPT ?= -Os
5050
COPT += -DNDEBUG

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy