Skip to content

Commit 50b01b6

Browse files
committed
Rename variable 'includes' -> 'includeFolders'
1 parent 9447084 commit 50b01b6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

legacy/builder/container_find_includes.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -316,9 +316,9 @@ func findIncludesUntilDone(ctx *types.Context, cache *includeCache, sourceFile *
316316
// search path, but only for the source code of the library, so we temporary
317317
// copy the current search path list and add the library' utility directory
318318
// if needed.
319-
includes := ctx.IncludeFolders
319+
includeFolders := ctx.IncludeFolders
320320
if library := sourceFile.Library; library != nil && library.UtilityDir != nil {
321-
includes = append(includes, library.UtilityDir)
321+
includeFolders = append(includeFolders, library.UtilityDir)
322322
}
323323

324324
if library := sourceFile.Library; library != nil {
@@ -342,7 +342,7 @@ func findIncludesUntilDone(ctx *types.Context, cache *includeCache, sourceFile *
342342
ctx.Info(tr("Using cached library dependencies for file: %[1]s", sourcePath))
343343
}
344344
} else {
345-
preproc_stderr, preproc_err = GCCPreprocRunnerForDiscoveringIncludes(ctx, sourcePath, targetFilePath, includes)
345+
preproc_stderr, preproc_err = GCCPreprocRunnerForDiscoveringIncludes(ctx, sourcePath, targetFilePath, includeFolders)
346346
// Unwrap error and see if it is an ExitError.
347347
if preproc_err == nil {
348348
// Preprocessor successful, done
@@ -371,7 +371,7 @@ func findIncludesUntilDone(ctx *types.Context, cache *includeCache, sourceFile *
371371
// return errors.WithStack(err)
372372
if preproc_err == nil || preproc_stderr == nil {
373373
// Filename came from cache, so run preprocessor to obtain error to show
374-
preproc_stderr, preproc_err = GCCPreprocRunnerForDiscoveringIncludes(ctx, sourcePath, targetFilePath, includes)
374+
preproc_stderr, preproc_err = GCCPreprocRunnerForDiscoveringIncludes(ctx, sourcePath, targetFilePath, includeFolders)
375375
if preproc_err == nil {
376376
// If there is a missing #include in the cache, but running
377377
// gcc does not reproduce that, there is something wrong.

0 commit comments

Comments
 (0)