Skip to content

Commit afb26d6

Browse files
author
Federico Fissore
committed
Windows: fixed wrong NULL file check
Signed-off-by: Federico Fissore <[email protected]>
1 parent 2f1f64c commit afb26d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/arduino.cc/builder/gcc_preproc_runner.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ func (s *GCCPreprocRunnerForDiscoveringIncludes) Run(context map[string]interfac
8787
}
8888

8989
func prepareGCCPreprocRecipeProperties(context map[string]interface{}, sourceFilePath string, targetFilePath string) (map[string]string, string, error) {
90-
if !filepath.IsAbs(targetFilePath) {
90+
if targetFilePath != utils.NULLFile() {
9191
preprocPath := context[constants.CTX_PREPROC_PATH].(string)
9292
err := utils.EnsureFolderExists(preprocPath)
9393
if err != nil {

0 commit comments

Comments
 (0)