| OLD | NEW |
| 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 collections | 5 import collections |
| 6 import copy | 6 import copy |
| 7 import hashlib | 7 import hashlib |
| 8 import json | 8 import json |
| 9 import multiprocessing | 9 import multiprocessing |
| 10 import os.path | 10 import os.path |
| (...skipping 1741 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1752 if cc.endswith('clang-cl'): | 1752 if cc.endswith('clang-cl'): |
| 1753 clang_cl = cc | 1753 clang_cl = cc |
| 1754 if key == 'CXX': | 1754 if key == 'CXX': |
| 1755 cxx = os.path.join(build_to_root, value) | 1755 cxx = os.path.join(build_to_root, value) |
| 1756 if key == 'CC.host': | 1756 if key == 'CC.host': |
| 1757 cc_host = os.path.join(build_to_root, value) | 1757 cc_host = os.path.join(build_to_root, value) |
| 1758 cc_host_global_setting = value | 1758 cc_host_global_setting = value |
| 1759 if key == 'CXX.host': | 1759 if key == 'CXX.host': |
| 1760 cxx_host = os.path.join(build_to_root, value) | 1760 cxx_host = os.path.join(build_to_root, value) |
| 1761 cxx_host_global_setting = value | 1761 cxx_host_global_setting = value |
| 1762 if key == 'LD': |
| 1763 ld = os.path.join(build_to_root, value) |
| 1764 if key == 'LD.host': |
| 1765 ld_host = os.path.join(build_to_root, value) |
| 1762 if key.endswith('_wrapper'): | 1766 if key.endswith('_wrapper'): |
| 1763 wrappers[key[:-len('_wrapper')]] = os.path.join(build_to_root, value) | 1767 wrappers[key[:-len('_wrapper')]] = os.path.join(build_to_root, value) |
| 1764 | 1768 |
| 1765 # Support wrappers from environment variables too. | 1769 # Support wrappers from environment variables too. |
| 1766 for key, value in os.environ.iteritems(): | 1770 for key, value in os.environ.iteritems(): |
| 1767 if key.lower().endswith('_wrapper'): | 1771 if key.lower().endswith('_wrapper'): |
| 1768 key_prefix = key[:-len('_wrapper')] | 1772 key_prefix = key[:-len('_wrapper')] |
| 1769 key_prefix = re.sub(r'\.HOST$', '.host', key_prefix) | 1773 key_prefix = re.sub(r'\.HOST$', '.host', key_prefix) |
| 1770 wrappers[key_prefix] = os.path.join(build_to_root, value) | 1774 wrappers[key_prefix] = os.path.join(build_to_root, value) |
| 1771 | 1775 |
| (...skipping 441 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2213 arglists.append( | 2217 arglists.append( |
| 2214 (target_list, target_dicts, data, params, config_name)) | 2218 (target_list, target_dicts, data, params, config_name)) |
| 2215 pool.map(CallGenerateOutputForConfig, arglists) | 2219 pool.map(CallGenerateOutputForConfig, arglists) |
| 2216 except KeyboardInterrupt, e: | 2220 except KeyboardInterrupt, e: |
| 2217 pool.terminate() | 2221 pool.terminate() |
| 2218 raise e | 2222 raise e |
| 2219 else: | 2223 else: |
| 2220 for config_name in config_names: | 2224 for config_name in config_names: |
| 2221 GenerateOutputForConfig(target_list, target_dicts, data, params, | 2225 GenerateOutputForConfig(target_list, target_dicts, data, params, |
| 2222 config_name) | 2226 config_name) |
| OLD | NEW |