From 8efa3455c21a6ef9a8b3c13ccb2085015a65113a Mon Sep 17 00:00:00 2001 From: Tanguy Pruvot Date: Fri, 2 Aug 2019 14:28:38 +0200 Subject: [PATCH] STM32F1: Reduce binary by 2K by dropping full path asserts (#14807) --- platformio.ini | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/platformio.ini b/platformio.ini index 0c7c8d403..6d4b8f4a4 100644 --- a/platformio.ini +++ b/platformio.ini @@ -262,6 +262,7 @@ framework = arduino board = genericSTM32F103RE build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py ${common.build_flags} -std=gnu++14 + -DDEBUG_LEVEL=0 build_unflags = -std=gnu++11 lib_deps = ${common.lib_deps} lib_ignore = U8glib-HAL @@ -286,7 +287,9 @@ board = genericSTM32F103RC #board_build.core = maple extra_scripts = buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py - ${common.build_flags} + ${common.build_flags} -std=gnu++14 + -DDEBUG_LEVEL=0 +build_unflags = -std=gnu++11 lib_deps = ${common.lib_deps} lib_ignore = c1921b4 @@ -312,6 +315,7 @@ board = genericSTM32F103RC extra_scripts = buildroot/share/PlatformIO/scripts/STM32F1_SKR_MINI.py build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py ${common.build_flags} -std=gnu++14 + -DDEBUG_LEVEL=0 build_unflags = -std=gnu++11 lib_deps = ${common.lib_deps} lib_ignore = @@ -564,6 +568,7 @@ platform = ststm32 framework = arduino board = malyanM200 build_flags = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py -DMCU_STM32F103CB -D __STM32F1__=1 -std=c++1y -D MOTHERBOARD="BOARD_MALYAN_M200" -DSERIAL_USB -ffunction-sections -fdata-sections -Wl,--gc-sections + -DDEBUG_LEVEL=0 src_filter = ${common.default_src_filter} + #- lib_ignore =