| Index: pylib/gyp/MSVSUtil.py
|
| diff --git a/pylib/gyp/MSVSUtil.py b/pylib/gyp/MSVSUtil.py
|
| index 62e8d260d444d0e75a58492e9e39934f4a9c2649..fbf3ed2e3ce223cd64db89189a866251d81dd38a 100644
|
| --- a/pylib/gyp/MSVSUtil.py
|
| +++ b/pylib/gyp/MSVSUtil.py
|
| @@ -109,15 +109,16 @@ def ShardTargets(target_list, target_dicts):
|
| new_target_dicts[t] = target_dicts[t]
|
| # Shard dependencies.
|
| for t in new_target_dicts:
|
| - dependencies = copy.copy(new_target_dicts[t].get('dependencies', []))
|
| - new_dependencies = []
|
| - for d in dependencies:
|
| - if d in targets_to_shard:
|
| - for i in range(targets_to_shard[d]):
|
| - new_dependencies.append(_ShardName(d, i))
|
| - else:
|
| - new_dependencies.append(d)
|
| - new_target_dicts[t]['dependencies'] = new_dependencies
|
| + for deptype in ('dependencies', 'dependencies_original'):
|
| + dependencies = copy.copy(new_target_dicts[t].get(deptype, []))
|
| + new_dependencies = []
|
| + for d in dependencies:
|
| + if d in targets_to_shard:
|
| + for i in range(targets_to_shard[d]):
|
| + new_dependencies.append(_ShardName(d, i))
|
| + else:
|
| + new_dependencies.append(d)
|
| + new_target_dicts[t][deptype] = new_dependencies
|
|
|
| return (new_target_list, new_target_dicts)
|
|
|
| @@ -264,4 +265,4 @@ def InsertLargePdbShims(target_list, target_dicts, vars):
|
| # Update the original target to depend on the shim target.
|
| target_dict.setdefault('dependencies', []).append(full_shim_target_name)
|
|
|
| - return (target_list, target_dicts)
|
| + return (target_list, target_dicts)
|
|
|