[1.1.x][PlatformIO] Stop compiling after first five errors (#8828)

master
Thomas Moore 7 years ago committed by Scott Lahteine
parent ea345b1db7
commit 98159c0507

@ -781,7 +781,9 @@ void MarlinSettings::postprocess() {
} }
else { else {
float dummy = 0; float dummy = 0;
bool dummyb; #if DISABLED(AUTO_BED_LEVELING_UBL) || DISABLED(FWRETRACT)
bool dummyb;
#endif
working_crc = 0; // Init to 0. Accumulated by EEPROM_READ working_crc = 0; // Init to 0. Accumulated by EEPROM_READ

@ -5,8 +5,10 @@
# http://docs.platformio.org/en/latest/projectconf.html # http://docs.platformio.org/en/latest/projectconf.html
# #
# A sign `#` at the beginning of the line indicates a comment #
# Comment lines are ignored. # By default platformio build will abort after 5 errors.
# Remove '-fmax-errors=5' from build_flags below to see all.
#
# Automatic targets - enable auto-uploading # Automatic targets - enable auto-uploading
# targets = upload # targets = upload
@ -25,12 +27,13 @@ lib_deps =
Adafruit NeoPixel Adafruit NeoPixel
https://github.com/lincomatic/LiquidTWI2.git https://github.com/lincomatic/LiquidTWI2.git
https://github.com/trinamic/TMC26XStepper.git https://github.com/trinamic/TMC26XStepper.git
build_flags = -I $BUILDSRC_DIR -fmax-errors=5
[env:megaatmega2560] [env:megaatmega2560]
platform = atmelavr platform = atmelavr
framework = arduino framework = arduino
board = megaatmega2560 board = megaatmega2560
build_flags = -I $BUILDSRC_DIR build_flags = ${common.build_flags}
board_f_cpu = 16000000L board_f_cpu = 16000000L
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
@ -38,7 +41,7 @@ lib_deps = ${common.lib_deps}
platform = atmelavr platform = atmelavr
framework = arduino framework = arduino
board = megaatmega1280 board = megaatmega1280
build_flags = -I $BUILDSRC_DIR build_flags = ${common.build_flags}
board_f_cpu = 16000000L board_f_cpu = 16000000L
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
@ -46,7 +49,7 @@ lib_deps = ${common.lib_deps}
platform = teensy platform = teensy
framework = arduino framework = arduino
board = teensy20pp board = teensy20pp
build_flags = -I $BUILDSRC_DIR -D MOTHERBOARD=BOARD_PRINTRBOARD build_flags = ${common.build_flags} -D MOTHERBOARD=BOARD_PRINTRBOARD
# Bug in arduino framework does not allow boards running at 20Mhz # Bug in arduino framework does not allow boards running at 20Mhz
#board_f_cpu = 20000000L #board_f_cpu = 20000000L
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
@ -55,21 +58,21 @@ lib_deps = ${common.lib_deps}
platform = teensy platform = teensy
framework = arduino framework = arduino
board = teensy20pp board = teensy20pp
build_flags = -I $BUILDSRC_DIR -D MOTHERBOARD=BOARD_PRINTRBOARD_REVF build_flags = ${common.build_flags} -D MOTHERBOARD=BOARD_PRINTRBOARD_REVF
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
[env:brainwavepro] [env:brainwavepro]
platform = teensy platform = teensy
framework = arduino framework = arduino
board = teensy20pp board = teensy20pp
build_flags = -I $BUILDSRC_DIR -D MOTHERBOARD=BOARD_BRAINWAVE_PRO build_flags = ${common.build_flags} -D MOTHERBOARD=BOARD_BRAINWAVE_PRO
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
[env:rambo] [env:rambo]
platform = atmelavr platform = atmelavr
framework = arduino framework = arduino
board = reprap_rambo board = reprap_rambo
build_flags = -I $BUILDSRC_DIR build_flags = ${common.build_flags}
board_f_cpu = 16000000L board_f_cpu = 16000000L
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
@ -77,6 +80,7 @@ lib_deps = ${common.lib_deps}
platform = atmelavr platform = atmelavr
framework = arduino framework = arduino
board = sanguino_atmega1284p board = sanguino_atmega1284p
build_flags = ${common.build_flags}
upload_speed = 57600 upload_speed = 57600
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}
@ -84,4 +88,5 @@ lib_deps = ${common.lib_deps}
platform = atmelavr platform = atmelavr
framework = arduino framework = arduino
board = sanguino_atmega644p board = sanguino_atmega644p
build_flags = ${common.build_flags}
lib_deps = ${common.lib_deps} lib_deps = ${common.lib_deps}

Loading…
Cancel
Save