Commit b7d8f28
committed
Show errors during include detection properly
When an include could not be resolved, the preprocessor was ran again to
show the include error as reported by the compiler to the user. However,
the preprocessor was now always run against the main sketch, instead of
the file currently being processed. Unless the problem was in fact in
the main sketch, this caused no error to be shown and include detection
continued with the next file instead of being aborted as intended.
This fixes the problem by running the preprocessor on the right file. In
the future, this error handling might be a bit more improved, but for
now this should be sufficient.
Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>1 parent 874b3b6 commit b7d8f28
File tree
3 files changed
+7
-5
lines changed- src/arduino.cc/builder
3 files changed
+7
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
| |||
39 | 41 | | |
40 | 42 | | |
41 | 43 | | |
| 44 | + | |
42 | 45 | | |
43 | | - | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
340 | 340 | | |
341 | 341 | | |
342 | 342 | | |
343 | | - | |
| 343 | + | |
344 | 344 | | |
345 | 345 | | |
346 | 346 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| 45 | + | |
45 | 46 | | |
46 | 47 | | |
47 | 48 | | |
48 | 49 | | |
49 | | - | |
50 | | - | |
51 | | - | |
| 50 | + | |
52 | 51 | | |
53 | 52 | | |
54 | 53 | | |
| |||
0 commit comments