Skip to content

Commit 95ea3a3

Browse files
committed
Handle special case for objcopy recipe
1 parent e6d5328 commit 95ea3a3

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

internal/arduino/builder/builder.go

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,8 +455,11 @@ func (b *Builder) build() error {
455455
}
456456
b.Progress.CompleteStep()
457457

458-
if err := b.RunRecipe("recipe.objcopy.pattern", true); err != nil {
459-
return err
458+
extensions := b.buildProperties.SubTree("recipe.objcopy").FirstLevelKeys()
459+
for _, ext := range extensions {
460+
if err := b.RunRecipe("recipe.objcopy."+ext+".pattern", true); err != nil {
461+
return err
462+
}
460463
}
461464
b.Progress.CompleteStep()
462465

0 commit comments

Comments
 (0)