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

Unified Diff: tools/gn/functions.cc

Issue 2940873002: Implement tracking of BUILD.gn files used to define target, toolchain or (Closed)
Patch Set: Use base::flat_set instead of std::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/functions.cc
diff --git a/tools/gn/functions.cc b/tools/gn/functions.cc
index 272cd9430bc96d82fef310a8f8ef5600cd3e2725..532040490a000b4793638bb05a7db780773a92ad 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();
@@ -792,7 +793,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.

Powered by Google App Engine
This is Rietveld 408576698