Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(306)

Unified Diff: tools/gn/import_manager.cc

Issue 2940873002: Implement tracking of BUILD.gn files used to define target, toolchain or (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: tools/gn/import_manager.cc
diff --git a/tools/gn/import_manager.cc b/tools/gn/import_manager.cc
index c9a44d4eaf4d69f52ed2c367fab92b0d4974e0dc..02fa38fa1c1c543a9d48764b1b8dc0ad34f73c70 100644
--- a/tools/gn/import_manager.cc
+++ b/tools/gn/import_manager.cc
@@ -25,6 +25,7 @@ std::unique_ptr<Scope> UncachedImport(const Settings* settings,
return nullptr;
std::unique_ptr<Scope> scope(new Scope(settings->base_config()));
+ scope->AddSourceFile(file);
scope->set_source_dir(file.GetDir());
// Don't allow ScopePerFileProvider to provide target-related variables.

Powered by Google App Engine
This is Rietveld 408576698