File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -58,14 +58,18 @@ func (b *Builder) prepareSketchBuildPath() error {
5858 // If the merged source is unchanged, skip writing it.
5959 // This avoids unnecessary rebuilds and keeps the build path clean.
6060 if ! bytes .Equal (oldUnpreprocessedSource , []byte (mergedSource )) {
61+ b .logger .Warn (i18n .Tr ("Generating sketch files in build path..." ))
6162 if err := destFileUnpreprocessed .WriteFile ([]byte (mergedSource )); err != nil {
6263 return err
6364 }
6465
66+ b .logger .Warn (i18n .Tr ("Generating sketch files in build path" ))
6567 destFile := b .sketchBuildPath .Join (b .sketch .MainFile .Base () + ".cpp" )
66- if err := destFileUnpreprocessed . CopyTo ( destFile ); err != nil {
68+ if err := destFile . WriteFile ([] byte ( mergedSource ) ); err != nil {
6769 return err
6870 }
71+ } else {
72+ b .logger .Warn (fmt .Sprintf ("%s %s" , i18n .Tr ("Generating sketch files in build path..." ), i18n .Tr ("(sketch unchanged)" )))
6973 }
7074
7175 if err := b .sketchCopyAdditionalFiles (b .sketchBuildPath , b .sourceOverrides ); err != nil {
You can’t perform that action at this time.
0 commit comments