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

Unified Diff: tools/gn/functions.cc

Issue 2940873002: Implement tracking of BUILD.gn files used to define target, toolchain or (Closed)
Patch Set: Fix compilation after rebase. 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
« no previous file with comments | « tools/gn/function_toolchain.cc ('k') | tools/gn/header_checker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/functions.cc
diff --git a/tools/gn/functions.cc b/tools/gn/functions.cc
index 23319e4b59a9cd50a4da595a853031babb1e3c14..41022e67355a977ea84c3ef16c20f5d6b1e45357 100644
--- a/tools/gn/functions.cc
+++ b/tools/gn/functions.cc
@@ -337,7 +337,8 @@ Value RunConfig(const FunctionCallNode* function,
g_scheduler->Log("Defining config", label.GetUserVisibleName(true));
// Create the new config.
- std::unique_ptr<Config> config(new Config(scope->settings(), label));
+ std::unique_ptr<Config> config(
+ new Config(scope->settings(), label, scope->input_files()));
config->set_defined_from(function);
if (!Visibility::FillItemVisibility(config.get(), scope, err))
return Value();
@@ -908,7 +909,8 @@ Value RunPool(const FunctionCallNode* function,
}
// Create the new pool.
- std::unique_ptr<Pool> pool(new Pool(scope->settings(), label));
+ std::unique_ptr<Pool> pool(
+ new Pool(scope->settings(), label, scope->input_files()));
pool->set_depth(depth->int_value());
// Save the generated item.
« no previous file with comments | « tools/gn/function_toolchain.cc ('k') | tools/gn/header_checker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698