Browse Source

Merge pull request #8867 from tcm0116/2.0.x_pio_errors

[2.0.x][PlatformIO] Stop compiling after first five errors
Scott Lahteine 7 years ago
parent
commit
2d75b540e2
No account linked to committer's email address
1 changed files with 23 additions and 11 deletions
  1. 23
    11
      platformio.ini

+ 23
- 11
platformio.ini View File

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

Loading…
Cancel
Save