Skip to content

Commit

Permalink
codal_port/Makefile: Keep C/C++ flags set up by MicroPython lib.
Browse files Browse the repository at this point in the history
  • Loading branch information
microbit-carlos authored and dpgeorge committed May 20, 2024
1 parent ef2a57e commit 41245c8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/codal_port/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ INC += -I$(BUILD)
CWARN = -Wall -Werror
CWARN += -Wpointer-arith -Wuninitialized
CFLAGS_ARCH += -DNRF52833_XXAA
CFLAGS = $(INC) $(CWARN) -std=c99 $(CFLAGS_MOD) $(CFLAGS_ARCH) $(COPT) $(CFLAGS_EXTRA)
CFLAGS += $(INC) $(CWARN) -std=c99 $(CFLAGS_MOD) $(CFLAGS_ARCH) $(COPT) $(CFLAGS_EXTRA)
CXXFLAGS += $(filter-out -std=c99,$(CFLAGS))

# Debugging/Optimization
ifdef DEBUG
Expand All @@ -56,7 +57,7 @@ endif

CFLAGS += -g
LDFLAGS_ARCH = -Wl,-map,$@.map
LDFLAGS = $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA)
LDFLAGS += $(LDFLAGS_MOD) $(LDFLAGS_ARCH) -lm $(LDFLAGS_EXTRA)

SRC_C += \
drv_display.c \
Expand Down

0 comments on commit 41245c8

Please sign in to comment.