@@ -321,7 +321,6 @@ func (l *SketchLibrariesDetector) findMissingIncludesInCompilationUnit(
321321) error {
322322 sourceFile := sourceFileQueue .Pop ()
323323 sourcePath := sourceFile .SourcePath ()
324- targetFilePath := paths .NullPath ()
325324 depPath := sourceFile .DepfilePath ()
326325 objPath := sourceFile .ObjectPath ()
327326
@@ -366,7 +365,7 @@ func (l *SketchLibrariesDetector) findMissingIncludesInCompilationUnit(
366365 }
367366 first = false
368367 } else {
369- preprocResult , preprocErr = preprocessor .GCC (ctx , sourcePath , targetFilePath , includeFolders , buildProperties )
368+ preprocResult , preprocErr = preprocessor .GCC (ctx , sourcePath , paths . NullPath () , includeFolders , buildProperties )
370369 if l .logger .VerbosityLevel () == logger .VerbosityVerbose {
371370 l .logger .WriteStdout (preprocResult .Stdout )
372371 }
@@ -399,7 +398,7 @@ func (l *SketchLibrariesDetector) findMissingIncludesInCompilationUnit(
399398
400399 // If preprocess result came from cache, run the preprocessor to obtain the actual error to show
401400 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 )
403402 if l .logger .VerbosityLevel () == logger .VerbosityVerbose {
404403 l .logger .WriteStdout (preprocResult .Stdout )
405404 }
0 commit comments