| Index: tools/gn/functions_target.cc
|
| diff --git a/tools/gn/functions_target.cc b/tools/gn/functions_target.cc
|
| index 4e162d54004d0bd3aaeb061cb7165835ae4f8391..8aa7f9319384ebaa7ccdc10d73cf33fe762851a6 100644
|
| --- a/tools/gn/functions_target.cc
|
| +++ b/tools/gn/functions_target.cc
|
| @@ -773,7 +773,7 @@ Value RunTarget(Scope* scope,
|
| // Run a template if it is one.
|
| const Template* templ = scope->GetTemplate(target_type);
|
| if (templ)
|
| - return templ->Invoke(scope, function, sub_args, block, err);
|
| + return templ->Invoke(scope, function, target_type, sub_args, block, err);
|
|
|
| // Otherwise, assume the target is a built-in target type.
|
| return ExecuteGenericTarget(target_type.c_str(), scope, function, sub_args,
|
|
|