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. |