@@ -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