@@ -321,7 +321,6 @@ func (l *SketchLibrariesDetector) findMissingIncludesInCompilationUnit(
321
321
) error {
322
322
sourceFile := sourceFileQueue .Pop ()
323
323
sourcePath := sourceFile .SourcePath ()
324
- targetFilePath := paths .NullPath ()
325
324
depPath := sourceFile .DepfilePath ()
326
325
objPath := sourceFile .ObjectPath ()
327
326
@@ -366,7 +365,7 @@ func (l *SketchLibrariesDetector) findMissingIncludesInCompilationUnit(
366
365
}
367
366
first = false
368
367
} else {
369
- preprocResult , preprocErr = preprocessor .GCC (ctx , sourcePath , targetFilePath , includeFolders , buildProperties )
368
+ preprocResult , preprocErr = preprocessor .GCC (ctx , sourcePath , paths . NullPath () , includeFolders , buildProperties )
370
369
if l .logger .VerbosityLevel () == logger .VerbosityVerbose {
371
370
l .logger .WriteStdout (preprocResult .Stdout )
372
371
}
@@ -399,7 +398,7 @@ func (l *SketchLibrariesDetector) findMissingIncludesInCompilationUnit(
399
398
400
399
// If preprocess result came from cache, run the preprocessor to obtain the actual error to show
401
400
if preprocErr == nil || len (preprocResult .Stderr ) == 0 {
402
- preprocResult , preprocErr = preprocessor .GCC (ctx , sourcePath , targetFilePath , includeFolders , buildProperties )
401
+ preprocResult , preprocErr = preprocessor .GCC (ctx , sourcePath , paths . NullPath () , includeFolders , buildProperties )
403
402
if l .logger .VerbosityLevel () == logger .VerbosityVerbose {
404
403
l .logger .WriteStdout (preprocResult .Stdout )
405
404
}
0 commit comments