diff options
| author | root <siehputz@gmail.com> | 2020-07-23 19:27:02 -0500 |
|---|---|---|
| committer | root <siehputz@gmail.com> | 2020-07-23 19:27:02 -0500 |
| commit | 778e8bfda97868b6a29fe5e4656aa2c2e2dd4378 (patch) | |
| tree | 9a1d6f0d2795dec7051778b2e0551ac66ae426f8 /ports/mimxrt10xx | |
| parent | d83a4ac72db90253089fb33e6f01d6da8f99f8b3 (diff) | |
Changes to optimization option
Diffstat (limited to 'ports/mimxrt10xx')
| -rw-r--r-- | ports/mimxrt10xx/Makefile | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ports/mimxrt10xx/Makefile b/ports/mimxrt10xx/Makefile index bfc73d638..917718810 100644 --- a/ports/mimxrt10xx/Makefile +++ b/ports/mimxrt10xx/Makefile @@ -105,13 +105,13 @@ CFLAGS += \ -DCPU_$(CHIP_VARIANT) \ -DDEBUG \ -DIMXRT10XX \ - -Os -g3 -Wno-unused-parameter \ + -g3 -Wno-unused-parameter \ -ffunction-sections -fdata-sections -fstack-usage +OPTIMIZATION_FLAGS ?= -O2 + # option to override compiler optimization level, set in boards/$(BOARD)/mpconfigboard.mk -ifdef OPTIMIZATION_LEVEL -CFLAGS += -O$(OPTIMIZATION_LEVEL) -endif +CFLAGS += $(OPTIMIZATION_FLAGS) LD_FILES = $(wildcard boards/$(BOARD)/*.ld) $(addprefix linking/, flash/$(FLASH).ld chip_family/$(CHIP_FAMILY).ld common.ld) |
