Commit 6f5e242
committed
Put utility folders in the include path during include detection
When compiling source files from a library, the utility folder of the
library itself is in the include path. When doing include detection,
this did not happen, which could lead to compilation errors. Because of
the broken (but recently fixed) errorhandling in include detection, this
error was not visible to the user. It would only have a visible effect
if a library included another library *after* including a file from its
utility folder through the include path, and that other library was not
otherwise pulled in.
In practice, this would almost never occur, but with the new caching the
cache would be invalidated and this problem became visible.
This is fixed by simply including the utility folder in the include path
during include detection. This required explicitly passing the include
path through the GCCPreprocRunnerForDiscoveringIncludes and
GCCPreprocRunner.
Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>1 parent 7dd4e1c commit 6f5e242
File tree
3 files changed
+13
-7
lines changed- src/arduino.cc/builder
3 files changed
+13
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
312 | 312 | | |
313 | 313 | | |
314 | 314 | | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
315 | 320 | | |
316 | 321 | | |
317 | 322 | | |
318 | 323 | | |
319 | 324 | | |
320 | 325 | | |
321 | 326 | | |
322 | | - | |
| 327 | + | |
323 | 328 | | |
324 | 329 | | |
325 | 330 | | |
| |||
340 | 345 | | |
341 | 346 | | |
342 | 347 | | |
343 | | - | |
| 348 | + | |
344 | 349 | | |
345 | 350 | | |
346 | 351 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
50 | | - | |
| 51 | + | |
51 | 52 | | |
52 | 53 | | |
53 | 54 | | |
| |||
72 | 73 | | |
73 | 74 | | |
74 | 75 | | |
| 76 | + | |
75 | 77 | | |
76 | 78 | | |
77 | 79 | | |
78 | | - | |
| 80 | + | |
79 | 81 | | |
80 | 82 | | |
81 | 83 | | |
| |||
98 | 100 | | |
99 | 101 | | |
100 | 102 | | |
101 | | - | |
| 103 | + | |
102 | 104 | | |
103 | 105 | | |
104 | 106 | | |
| |||
112 | 114 | | |
113 | 115 | | |
114 | 116 | | |
115 | | - | |
116 | 117 | | |
117 | 118 | | |
118 | 119 | | |
| |||
0 commit comments