File tree 2 files changed +10
-3
lines changed
2 files changed +10
-3
lines changed Original file line number Diff line number Diff line change @@ -116,8 +116,6 @@ func (s *Builder) Run(ctx *types.Context) error {
116
116
& RecipeByPrefixSuffixRunner {Prefix : "recipe.objcopy." , Suffix : constants .HOOKS_PATTERN_SUFFIX },
117
117
& RecipeByPrefixSuffixRunner {Prefix : constants .HOOKS_OBJCOPY_POSTOBJCOPY , Suffix : constants .HOOKS_PATTERN_SUFFIX },
118
118
119
- & phases.Sizer {},
120
-
121
119
& MergeSketchWithBootloader {},
122
120
123
121
& RecipeByPrefixSuffixRunner {Prefix : constants .HOOKS_POSTBUILD , Suffix : constants .HOOKS_PATTERN_SUFFIX },
@@ -129,6 +127,8 @@ func (s *Builder) Run(ctx *types.Context) error {
129
127
& PrintUsedAndNotUsedLibraries {SketchError : mainErr != nil },
130
128
131
129
& PrintUsedLibrariesIfVerbose {},
130
+
131
+ & phases.Sizer {SketchError : mainErr != nil },
132
132
}
133
133
otherErr := runCommands (ctx , commands , false )
134
134
Original file line number Diff line number Diff line change @@ -41,9 +41,16 @@ import (
41
41
"arduino.cc/properties"
42
42
)
43
43
44
- type Sizer struct {}
44
+ type Sizer struct {
45
+ SketchError bool
46
+ }
45
47
46
48
func (s * Sizer ) Run (ctx * types.Context ) error {
49
+
50
+ if s .SketchError {
51
+ return nil
52
+ }
53
+
47
54
buildProperties := ctx .BuildProperties
48
55
verbose := ctx .Verbose
49
56
warningsLevel := ctx .WarningsLevel
You can’t perform that action at this time.
0 commit comments