Przeglądaj źródła

STM32F1: Reduce binary by 2K by dropping full path asserts (#14807)

Tanguy Pruvot 5 lat temu
rodzic
commit
8efa3455c2
1 zmienionych plików z 6 dodań i 1 usunięć
  1. 6
    1
      platformio.ini

+ 6
- 1
platformio.ini Wyświetl plik

@@ -262,6 +262,7 @@ framework     = arduino
262 262
 board         = genericSTM32F103RE
263 263
 build_flags   = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
264 264
   ${common.build_flags} -std=gnu++14
265
+  -DDEBUG_LEVEL=0
265 266
 build_unflags = -std=gnu++11
266 267
 lib_deps      = ${common.lib_deps}
267 268
 lib_ignore    = U8glib-HAL
@@ -286,7 +287,9 @@ board         = genericSTM32F103RC
286 287
 #board_build.core = maple
287 288
 extra_scripts = buildroot/share/PlatformIO/scripts/fysetc_STM32F1.py
288 289
 build_flags   = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
289
-  ${common.build_flags}
290
+  ${common.build_flags} -std=gnu++14
291
+  -DDEBUG_LEVEL=0
292
+build_unflags = -std=gnu++11
290 293
 lib_deps      = ${common.lib_deps}
291 294
 lib_ignore    =
292 295
   c1921b4
@@ -312,6 +315,7 @@ board         = genericSTM32F103RC
312 315
 extra_scripts = buildroot/share/PlatformIO/scripts/STM32F1_SKR_MINI.py
313 316
 build_flags   = !python Marlin/src/HAL/HAL_STM32F1/STM32F1_flag_script.py
314 317
   ${common.build_flags} -std=gnu++14
318
+  -DDEBUG_LEVEL=0
315 319
 build_unflags = -std=gnu++11
316 320
 lib_deps      = ${common.lib_deps}
317 321
 lib_ignore    =
@@ -564,6 +568,7 @@ platform    = ststm32
564 568
 framework   = arduino
565 569
 board       = malyanM200
566 570
 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
571
+  -DDEBUG_LEVEL=0
567 572
 src_filter  = ${common.default_src_filter} +<src/HAL/HAL_STM32F1>
568 573
 #-<frameworks>
569 574
 lib_ignore  =

Ładowanie…
Anuluj
Zapisz