Skip to content

Commit 87669ba

Browse files
committed
Mute ctx.SourceGccMinusE if empty
1 parent 74b2e4b commit 87669ba

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

print_preprocessed_source.go

+5-2
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,16 @@
3030
package builder
3131

3232
import (
33-
"github.com/arduino/arduino-builder/types"
3433
"fmt"
34+
35+
"github.com/arduino/arduino-builder/types"
3536
)
3637

3738
type PrintPreprocessedSource struct{}
3839

3940
func (s *PrintPreprocessedSource) Run(ctx *types.Context) error {
40-
fmt.Println(ctx.SourceGccMinusE)
41+
if ctx.SourceGccMinusE != "" {
42+
fmt.Println(ctx.SourceGccMinusE)
43+
}
4144
return nil
4245
}

0 commit comments

Comments
 (0)