Add -fmerge-all-constants flag

This commit is contained in:
Scott Lahteine 2019-11-29 22:56:59 -06:00
parent f83bc0aa13
commit 8431af2bff

View file

@ -23,7 +23,7 @@ default_envs = megaatmega2560
[common] [common]
default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared> default_src_filter = +<src/*> -<src/config> -<src/HAL> +<src/HAL/shared>
extra_scripts = pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py extra_scripts = pre:buildroot/share/PlatformIO/scripts/common-cxxflags.py
build_flags = -fmax-errors=5 -g -D__MARLIN_FIRMWARE__ build_flags = -fmax-errors=5 -g -D__MARLIN_FIRMWARE__ -fmerge-all-constants
lib_deps = lib_deps =
U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip U8glib-HAL=https://github.com/MarlinFirmware/U8glib-HAL/archive/bugfix.zip
LiquidCrystal@1.3.4 LiquidCrystal@1.3.4
@ -109,7 +109,7 @@ board = sanguino_atmega1284p
# #
[env:melzi] [env:melzi]
extends = env:sanguino_atmega1284p extends = env:sanguino_atmega1284p
build_flags = ${common.build_flags} -fmerge-all-constants build_flags = ${common.build_flags}
lib_ignore = TMCStepper lib_ignore = TMCStepper
upload_speed = 57600 upload_speed = 57600