Index: tools/gn/target_generator.cc |
diff --git a/tools/gn/target_generator.cc b/tools/gn/target_generator.cc |
index ca193b646d9c1f11526a70bb4acd8de34bb72c7a..947cf9fb528ca695ce6e331fc217fb22025d5843 100644 |
--- a/tools/gn/target_generator.cc |
+++ b/tools/gn/target_generator.cc |
@@ -88,7 +88,8 @@ void TargetGenerator::GenerateTarget(Scope* scope, |
if (g_scheduler->verbose_logging()) |
g_scheduler->Log("Defining target", label.GetUserVisibleName(true)); |
- std::unique_ptr<Target> target(new Target(scope->settings(), label)); |
+ std::unique_ptr<Target> target( |
+ new Target(scope->settings(), label, scope->input_files())); |
target->set_defined_from(function_call); |
// Create and call out to the proper generator. |