Browse Source

stm32/Makefile: Allow overriding COPT in Makefile.

It can now be set in mpconfigboard.mk (as well as the make command line).
pull/8476/head
Andrew Leech 3 years ago
committed by Damien George
parent
commit
8db93dc016
  1. 4
      ports/stm32/Makefile

4
ports/stm32/Makefile

@ -106,11 +106,11 @@ LDFLAGS += --gc-sections
# Debugging/Optimization
ifeq ($(DEBUG), 1)
CFLAGS += -g -DPENDSV_DEBUG
COPT = -Og
COPT ?= -Og
# Disable text compression in debug builds
MICROPY_ROM_TEXT_COMPRESSION = 0
else
COPT += -Os -DNDEBUG
COPT ?= -Os -DNDEBUG
endif
# Flags for optional C++ source code

Loading…
Cancel
Save