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/cxd56 | |
| parent | d83a4ac72db90253089fb33e6f01d6da8f99f8b3 (diff) | |
Changes to optimization option
Diffstat (limited to 'ports/cxd56')
| -rw-r--r-- | ports/cxd56/Makefile | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/ports/cxd56/Makefile b/ports/cxd56/Makefile index 8a23059b7..b3e104e1e 100644 --- a/ports/cxd56/Makefile +++ b/ports/cxd56/Makefile @@ -107,7 +107,6 @@ CFLAGS += \ -Dmain=spresense_main \ -D_estack=__stack \ -c \ - -Os \ -pipe \ -std=gnu11 \ -mcpu=cortex-m4 \ @@ -123,10 +122,10 @@ CFLAGS += \ -fdata-sections \ -Wall \ +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) LIBM = "${shell "$(CC)" $(CFLAGS) -print-file-name=libm.a}" |
