Makefile: enable -O3

This commit is contained in:
Peter Cai 2021-06-10 18:28:34 +08:00
parent 3c43881716
commit 7bd6bb1073
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ INCS := \
$(foreach path, ${VPATH}, -I ${path}) \
$(foreach path, ${VARIANTS}, -I ${path}) \
CFLAGS := -Os -DF_CPU=16000000UL ${MMCU} ${INCS}
CFLAGS := -O3 -DF_CPU=16000000UL ${MMCU} ${INCS}
# Generate sections for each function and variable
# so that LD can eliminate unused functions and variables
CFLAGS += -ffunction-sections -fdata-sections