@@ -69,31 +69,31 @@ func (s *Builder) Run(ctx *types.Context) error {
69
69
utils .LogIfVerbose ("info" , tr ("Compiling sketch..." )),
70
70
& RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.sketch.prebuild" , Suffix : ".pattern" },
71
71
& phases.SketchBuilder {},
72
- & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.sketch.postbuild" , Suffix : ".pattern" },
72
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.sketch.postbuild" , Suffix : ".pattern" , SkipIfOnlyUpdatingCompilationDatabase : true },
73
73
74
74
utils .LogIfVerbose ("info" , tr ("Compiling libraries..." )),
75
75
& RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.libraries.prebuild" , Suffix : ".pattern" },
76
76
& UnusedCompiledLibrariesRemover {},
77
77
& phases.LibrariesBuilder {},
78
- & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.libraries.postbuild" , Suffix : ".pattern" },
78
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.libraries.postbuild" , Suffix : ".pattern" , SkipIfOnlyUpdatingCompilationDatabase : true },
79
79
80
80
utils .LogIfVerbose ("info" , tr ("Compiling core..." )),
81
81
& RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.core.prebuild" , Suffix : ".pattern" },
82
82
& phases.CoreBuilder {},
83
- & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.core.postbuild" , Suffix : ".pattern" },
83
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.core.postbuild" , Suffix : ".pattern" , SkipIfOnlyUpdatingCompilationDatabase : true },
84
84
85
85
utils .LogIfVerbose ("info" , tr ("Linking everything together..." )),
86
86
& RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.linking.prelink" , Suffix : ".pattern" },
87
87
& phases.Linker {},
88
- & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.linking.postlink" , Suffix : ".pattern" },
88
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.linking.postlink" , Suffix : ".pattern" , SkipIfOnlyUpdatingCompilationDatabase : true },
89
89
90
90
& RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.objcopy.preobjcopy" , Suffix : ".pattern" },
91
- & RecipeByPrefixSuffixRunner {Prefix : "recipe.objcopy." , Suffix : ".pattern" },
92
- & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.objcopy.postobjcopy" , Suffix : ".pattern" },
91
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.objcopy." , Suffix : ".pattern" , SkipIfOnlyUpdatingCompilationDatabase : true },
92
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.objcopy.postobjcopy" , Suffix : ".pattern" , SkipIfOnlyUpdatingCompilationDatabase : true },
93
93
94
94
& MergeSketchWithBootloader {},
95
95
96
- & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.postbuild" , Suffix : ".pattern" },
96
+ & RecipeByPrefixSuffixRunner {Prefix : "recipe.hooks.postbuild" , Suffix : ".pattern" , SkipIfOnlyUpdatingCompilationDatabase : true },
97
97
}
98
98
99
99
mainErr := runCommands (ctx , commands )
0 commit comments