Browse Source

Stop compiling after first five errors

Thomas Moore 7 years ago
parent
commit
45e73b72a5
1 changed files with 23 additions and 11 deletions
  1. 23
    11
      platformio.ini

+ 23
- 11
platformio.ini View File

@@ -10,6 +10,11 @@
10 10
 # Automatic targets - enable auto-uploading
11 11
 # targets = upload
12 12
 
13
+#
14
+# By default platformio build will abort after 5 errors.
15
+# Remove '-fmax-errors=5' from build_flags below to see all.
16
+#
17
+
13 18
 [platformio]
14 19
 src_dir = Marlin
15 20
 envs_dir = .pioenvs
@@ -30,6 +35,8 @@ lib_deps =
30 35
 
31 36
 default_src_filter = +<src/*> -<src/config>
32 37
 
38
+build_flags = -fmax-errors=5
39
+
33 40
 #################################
34 41
 #                               #
35 42
 #   Unique Core Architectures   #
@@ -47,7 +54,7 @@ default_src_filter = +<src/*> -<src/config>
47 54
 platform    = atmelavr
48 55
 framework   = arduino
49 56
 board       = megaatmega2560
50
-build_flags = -I $BUILDSRC_DIR
57
+build_flags = ${common.build_flags} -I $BUILDSRC_DIR
51 58
 board_f_cpu = 16000000L
52 59
 lib_deps    = ${common.lib_deps}
53 60
 src_filter  = ${common.default_src_filter}
@@ -59,7 +66,7 @@ src_filter  = ${common.default_src_filter}
59 66
 platform    = atmelavr
60 67
 framework   = arduino
61 68
 board       = megaatmega1280
62
-build_flags = -I $BUILDSRC_DIR
69
+build_flags = ${common.build_flags} -I $BUILDSRC_DIR
63 70
 board_f_cpu = 16000000L
64 71
 lib_deps    = ${common.lib_deps}
65 72
 src_filter  = ${common.default_src_filter}
@@ -71,6 +78,7 @@ src_filter  = ${common.default_src_filter}
71 78
 platform     = atmelavr
72 79
 framework    = arduino
73 80
 board        = sanguino_atmega1284p
81
+build_flags  = ${common.build_flags}
74 82
 upload_speed = 57600
75 83
 lib_deps     = ${common.lib_deps}
76 84
 src_filter   = ${common.default_src_filter}
@@ -85,7 +93,7 @@ src_filter   = ${common.default_src_filter}
85 93
 platform    = atmelsam
86 94
 framework   = arduino
87 95
 board       = due
88
-build_flags = -I $BUILDSRC_DIR
96
+build_flags = ${common.build_flags} -I $BUILDSRC_DIR
89 97
 lib_deps    = ${common.lib_deps}
90 98
 src_filter  = ${common.default_src_filter}
91 99
 
@@ -96,6 +104,7 @@ src_filter  = ${common.default_src_filter}
96 104
 platform        = nxplpc
97 105
 board_f_cpu     = 100000000L
98 106
 build_flags     = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
107
+  ${common.build_flags}
99 108
   -DU8G_HAL_LINKS
100 109
 src_build_flags = -Wall
101 110
 build_unflags   = -Wall
@@ -116,6 +125,7 @@ platform       = nxplpc
116 125
 board          = lpc1768
117 126
 board_f_cpu    = 100000000L
118 127
 build_flags    = !python Marlin/src/HAL/HAL_LPC1768/lpc1768_flag_script.py
128
+  ${common.build_flags}
119 129
   -DU8G_HAL_LINKS
120 130
 lib_ldf_mode   = off
121 131
 lib_extra_dirs = frameworks
@@ -145,7 +155,7 @@ debug_server   =
145 155
 platform    = atmelavr
146 156
 framework   = arduino
147 157
 board       = reprap_rambo
148
-build_flags = -I $BUILDSRC_DIR
158
+build_flags = ${common.build_flags} -I $BUILDSRC_DIR
149 159
 board_f_cpu = 16000000L
150 160
 lib_deps    = ${common.lib_deps}
151 161
 src_filter  = ${common.default_src_filter}
@@ -154,17 +164,19 @@ src_filter  = ${common.default_src_filter}
154 164
 # Sanguinololu (ATmega644p)
155 165
 #
156 166
 [env:sanguino_atmega644p]
157
-platform   = atmelavr
158
-framework  = arduino
159
-board      = sanguino_atmega644p
160
-lib_deps   = ${common.lib_deps}
161
-src_filter = ${common.default_src_filter}
167
+platform    = atmelavr
168
+framework   = arduino
169
+board       = sanguino_atmega644p
170
+build_flags = ${common.build_flags}
171
+lib_deps    = ${common.lib_deps}
172
+src_filter  = ${common.default_src_filter}
162 173
 
163 174
 [env:STM32F1]
164 175
 platform    = ststm32
165 176
 framework   = arduino
166 177
 board       = genericSTM32F103RE
167 178
 build_flags = !python Marlin/src/HAL/HAL_STM32F1/stm32f1_flag_script.py
179
+  ${common.build_flags}
168 180
 lib_deps    = ${common.lib_deps}
169 181
 src_filter  = ${common.default_src_filter}
170 182
 
@@ -179,7 +191,7 @@ src_filter  = ${common.default_src_filter}
179 191
 platform      = teensy
180 192
 framework     = arduino
181 193
 board         = teensy20pp
182
-build_flags   = -I $BUILDSRC_DIR
194
+build_flags   = ${common.build_flags} -I $BUILDSRC_DIR
183 195
 #board_f_cpu  = 20000000L     ; Bug in Arduino framework disallows boards running at 20Mhz
184 196
 lib_deps      = ${common.lib_deps}
185 197
 src_filter    = ${common.default_src_filter}
@@ -191,7 +203,7 @@ src_filter    = ${common.default_src_filter}
191 203
 platform    = teensy
192 204
 framework   = arduino
193 205
 board       = teensy35
194
-build_flags = -I $BUILDSRC_DIR
206
+build_flags = ${common.build_flags} -I $BUILDSRC_DIR
195 207
 lib_deps    = ${common.lib_deps}
196 208
 lib_ignore  = Adafruit NeoPixel
197 209
 src_filter  = ${common.default_src_filter}

Loading…
Cancel
Save