Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1021)

Side by Side Diff: pylib/gyp/generator/ninja.py

Issue 12476002: Create msvs_large_pdb workaround. (Closed) Base URL: https://git.chromium.org/git/external/gyp.git@master
Patch Set: Addressed scottmg's nits. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « pylib/gyp/generator/msvs.py ('k') | test/win/gyptest-link-large-pdb.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2013 Google Inc. All rights reserved. 1 # Copyright (c) 2013 Google Inc. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import copy 5 import copy
6 import hashlib 6 import hashlib
7 import multiprocessing 7 import multiprocessing
8 import os.path 8 import os.path
9 import re 9 import re
10 import signal 10 import signal
(...skipping 1766 matching lines...) Expand 10 before | Expand all | Expand 10 after
1777 signal.signal(signal.SIGINT, signal.SIG_IGN) 1777 signal.signal(signal.SIGINT, signal.SIG_IGN)
1778 1778
1779 (target_list, target_dicts, data, params, config_name) = arglist 1779 (target_list, target_dicts, data, params, config_name) = arglist
1780 GenerateOutputForConfig(target_list, target_dicts, data, params, config_name) 1780 GenerateOutputForConfig(target_list, target_dicts, data, params, config_name)
1781 1781
1782 1782
1783 def GenerateOutput(target_list, target_dicts, data, params): 1783 def GenerateOutput(target_list, target_dicts, data, params):
1784 user_config = params.get('generator_flags', {}).get('config', None) 1784 user_config = params.get('generator_flags', {}).get('config', None)
1785 if gyp.common.GetFlavor(params) == 'win': 1785 if gyp.common.GetFlavor(params) == 'win':
1786 target_list, target_dicts = MSVSUtil.ShardTargets(target_list, target_dicts) 1786 target_list, target_dicts = MSVSUtil.ShardTargets(target_list, target_dicts)
1787 target_list, target_dicts = MSVSUtil.InsertLargePdbShims(
1788 target_list, target_dicts, generator_default_variables)
1789
1787 if user_config: 1790 if user_config:
1788 GenerateOutputForConfig(target_list, target_dicts, data, params, 1791 GenerateOutputForConfig(target_list, target_dicts, data, params,
1789 user_config) 1792 user_config)
1790 else: 1793 else:
1791 config_names = target_dicts[target_list[0]]['configurations'].keys() 1794 config_names = target_dicts[target_list[0]]['configurations'].keys()
1792 if params['parallel']: 1795 if params['parallel']:
1793 try: 1796 try:
1794 pool = multiprocessing.Pool(len(config_names)) 1797 pool = multiprocessing.Pool(len(config_names))
1795 arglists = [] 1798 arglists = []
1796 for config_name in config_names: 1799 for config_name in config_names:
1797 arglists.append( 1800 arglists.append(
1798 (target_list, target_dicts, data, params, config_name)) 1801 (target_list, target_dicts, data, params, config_name))
1799 pool.map(CallGenerateOutputForConfig, arglists) 1802 pool.map(CallGenerateOutputForConfig, arglists)
1800 except KeyboardInterrupt, e: 1803 except KeyboardInterrupt, e:
1801 pool.terminate() 1804 pool.terminate()
1802 raise e 1805 raise e
1803 else: 1806 else:
1804 for config_name in config_names: 1807 for config_name in config_names:
1805 GenerateOutputForConfig(target_list, target_dicts, data, params, 1808 GenerateOutputForConfig(target_list, target_dicts, data, params,
1806 config_name) 1809 config_name)
OLDNEW
« no previous file with comments | « pylib/gyp/generator/msvs.py ('k') | test/win/gyptest-link-large-pdb.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698