Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 1cdbf67

Browse files
committed
DRAFT
1 parent 164bbfe commit 1cdbf67

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)

AltStyle によって変換されたページ (->オリジナル) /