summaryrefslogtreecommitdiffstats
path: root/tools/gn/import_manager.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gn/import_manager.cc')
-rw-r--r--tools/gn/import_manager.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/gn/import_manager.cc b/tools/gn/import_manager.cc
index 4bb4b63..842577c 100644
--- a/tools/gn/import_manager.cc
+++ b/tools/gn/import_manager.cc
@@ -86,6 +86,9 @@ bool ImportManager::DoImport(const SourceFile& file,
}
}
- return imported_scope->NonRecursiveMergeTo(scope, false, node_for_err,
+ Scope::MergeOptions options;
+ options.skip_private_vars = true;
+ options.mark_used = true; // Don't require all imported values be used.
+ return imported_scope->NonRecursiveMergeTo(scope, options, node_for_err,
"import", err);
}