| Index: tools/gn/runtime_deps.cc
|
| diff --git a/tools/gn/runtime_deps.cc b/tools/gn/runtime_deps.cc
|
| index 5352de3aadd6640482f4c66dcc74fee8c5aa8254..27225e826968eefcfba14c2bcbed58f958fff447 100644
|
| --- a/tools/gn/runtime_deps.cc
|
| +++ b/tools/gn/runtime_deps.cc
|
| @@ -104,6 +104,12 @@ void RecursiveCollectRuntimeDeps(const Target* target,
|
| AddIfNew(output_file.value(), target, deps, found_files);
|
| }
|
|
|
| + // Data dependencies.
|
| + for (const auto& dep_pair : target->data_deps()) {
|
| + RecursiveCollectRuntimeDeps(dep_pair.ptr, true,
|
| + deps, seen_targets, found_files);
|
| + }
|
| +
|
| // Do not recurse into bundle targets. A bundle's dependencies should be
|
| // copied into the bundle itself for run-time access.
|
| if (target->output_type() == Target::CREATE_BUNDLE) {
|
| @@ -120,12 +126,6 @@ void RecursiveCollectRuntimeDeps(const Target* target,
|
| RecursiveCollectRuntimeDeps(dep_pair.ptr, false,
|
| deps, seen_targets, found_files);
|
| }
|
| -
|
| - // Data dependencies.
|
| - for (const auto& dep_pair : target->data_deps()) {
|
| - RecursiveCollectRuntimeDeps(dep_pair.ptr, true,
|
| - deps, seen_targets, found_files);
|
| - }
|
| }
|
|
|
| bool CollectRuntimeDepsFromFlag(const Builder& builder,
|
|
|