@@ -293,7 +293,6 @@ func (l *SketchLibrariesDetector) findMissingIncludesInCompilationUnit(
293
293
) error {
294
294
sourceFile := sourceFileQueue .Pop ()
295
295
sourcePath := sourceFile .SourcePath ()
296
- targetFilePath := paths .NullPath ()
297
296
depPath := sourceFile .DepfilePath ()
298
297
objPath := sourceFile .ObjectPath ()
299
298
@@ -338,7 +337,7 @@ func (l *SketchLibrariesDetector) findMissingIncludesInCompilationUnit(
338
337
}
339
338
first = false
340
339
} else {
341
- preprocResult , preprocErr = preprocessor .GCC (ctx , sourcePath , targetFilePath , includeFolders , buildProperties )
340
+ preprocResult , preprocErr = preprocessor .GCC (ctx , sourcePath , paths . NullPath () , includeFolders , buildProperties )
342
341
if l .logger .Verbose () {
343
342
l .logger .WriteStdout (preprocResult .Stdout )
344
343
}
@@ -371,7 +370,7 @@ func (l *SketchLibrariesDetector) findMissingIncludesInCompilationUnit(
371
370
372
371
// If preprocess result came from cache, run the preprocessor to obtain the actual error to show
373
372
if preprocErr == nil || len (preprocResult .Stderr ) == 0 {
374
- preprocResult , preprocErr = preprocessor .GCC (ctx , sourcePath , targetFilePath , includeFolders , buildProperties )
373
+ preprocResult , preprocErr = preprocessor .GCC (ctx , sourcePath , paths . NullPath () , includeFolders , buildProperties )
375
374
if l .logger .Verbose () {
376
375
l .logger .WriteStdout (preprocResult .Stdout )
377
376
}
0 commit comments