| Index: tools/gn/function_toolchain.cc
|
| diff --git a/tools/gn/function_toolchain.cc b/tools/gn/function_toolchain.cc
|
| index 58532551d4f2d65250db6002fbaf675eec20cff7..514d599a5be4e673ba3b0fae9693ce2bcc4621b4 100644
|
| --- a/tools/gn/function_toolchain.cc
|
| +++ b/tools/gn/function_toolchain.cc
|
| @@ -809,7 +809,8 @@ Value RunTool(Scope* scope,
|
| } else if (IsLinkerTool(tool_type)) {
|
| subst_validator = &IsValidLinkerSubstitution;
|
| subst_output_validator = &IsValidLinkerOutputsSubstitution;
|
| - } else if (tool_type == Toolchain::TYPE_COPY) {
|
| + } else if (tool_type == Toolchain::TYPE_COPY ||
|
| + tool_type == Toolchain::TYPE_COPY_BUNDLE_DATA) {
|
| subst_validator = &IsValidCopySubstitution;
|
| subst_output_validator = &IsValidCopySubstitution;
|
| } else {
|
| @@ -846,9 +847,11 @@ Value RunTool(Scope* scope,
|
| return Value();
|
| }
|
|
|
| - if (tool_type != Toolchain::TYPE_COPY && tool_type != Toolchain::TYPE_STAMP) {
|
| - // All tools except the copy and stamp tools should have outputs. The copy
|
| - // and stamp tool's outputs are generated internally.
|
| + if (tool_type != Toolchain::TYPE_COPY &&
|
| + tool_type != Toolchain::TYPE_COPY_BUNDLE_DATA &&
|
| + tool_type != Toolchain::TYPE_STAMP) {
|
| + // All tools except the copy, copy bundle data and stamp tools should have
|
| + // outputs. The copy and stamp tool's outputs are generated internally.
|
| if (!ReadOutputs(&block_scope, function, subst_output_validator,
|
| tool.get(), err))
|
| return Value();
|
|
|