Skip to content

Commit fa72186

Browse files
committed
DRAFT
1 parent dcd0ce2 commit fa72186

File tree

1 file changed

+7
-7
lines changed
  • internal/arduino/builder/internal/preprocessor

1 file changed

+7
-7
lines changed

internal/arduino/builder/internal/preprocessor/ctags.go

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ func PreprocessSketchWithCtags(
5858
// Check if the preprocessed file is already up-to-date
5959
unpreprocessedSourceFile := buildPath.Join("sketch", sketch.MainFile.Base()+".cpp.merged")
6060
preprocessedSourceFile := buildPath.Join("sketch", sketch.MainFile.Base()+".cpp")
61-
if unpreprocessedStat, err := unpreprocessedSourceFile.Stat(); err != nil {
62-
return nil, fmt.Errorf("%s: %w", i18n.Tr("unable to open unpreprocessed source file"), err)
63-
} else if sourceStat, err := preprocessedSourceFile.Stat(); err == nil && unpreprocessedStat.ModTime().Before(sourceStat.ModTime()) {
64-
fmt.Fprintln(stdout, i18n.Tr("Sketch is unchanged, skipping preprocessing."))
65-
res := &runner.Result{Stdout: stdout.Bytes(), Stderr: stderr.Bytes()}
66-
return res, nil
67-
}
61+
// if unpreprocessedStat, err := unpreprocessedSourceFile.Stat(); err != nil {
62+
// return nil, fmt.Errorf("%s: %w", i18n.Tr("unable to open unpreprocessed source file"), err)
63+
// } else if preprocessedStat, err := preprocessedSourceFile.Stat(); err == nil && unpreprocessedStat.ModTime().Before(preprocessedStat.ModTime()) {
64+
// fmt.Fprintln(stdout, i18n.Tr("Sketch is unchanged, skipping preprocessing."))
65+
// res := &runner.Result{Stdout: stdout.Bytes(), Stderr: stderr.Bytes()}
66+
// return res, nil
67+
// }
6868

6969
// Run GCC preprocessor
7070
result := GCC(unpreprocessedSourceFile, ctagsTarget, includes, buildProperties, nil).Run(ctx)

0 commit comments

Comments
 (0)