Skip to content

Commit 2def251

Browse files
author
Federico Fissore
committed
Changed default lib recursion depth from 3 to 4, removing that +1 from
container_find_includes Signed-off-by: Federico Fissore <f.fissore@arduino.cc>
1 parent 21d2a0f commit 2def251

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/arduino.cc/builder/builder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ const DEFAULT_DEBUG_LEVEL = 5
6161
const DEFAULT_WARNINGS_LEVEL = "none"
6262
const DEFAULT_SOFTWARE = "ARDUINO"
6363
const DEFAULT_BUILD_CORE = "arduino"
64-
const DEFAULT_LIBRARY_DISCOVERY_RECURSION_DEPTH = 3
64+
const DEFAULT_LIBRARY_DISCOVERY_RECURSION_DEPTH = 4
6565

6666
type Builder struct{}
6767

src/arduino.cc/builder/container_find_includes.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ type ContainerFindIncludes struct{}
3939

4040
func (s *ContainerFindIncludes) Run(context map[string]interface{}) error {
4141
wheelSpins := context[constants.CTX_LIBRARY_DISCOVERY_RECURSION_DEPTH].(int)
42-
for i := 0; i < wheelSpins+1; i++ {
42+
for i := 0; i < wheelSpins; i++ {
4343
commands := []types.Command{
4444
&IncludesFinderWithGCC{},
4545
&GCCMinusMOutputParser{},

0 commit comments

Comments
 (0)