| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright 2016 The Chromium Authors. All rights reserved. | 2 # Copyright 2016 The Chromium Authors. All rights reserved. |
| 3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
| 4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
| 5 | 5 |
| 6 """ | 6 """ |
| 7 If should_use_hermetic_xcode.py emits "1", and the current toolchain is out of | 7 If should_use_hermetic_xcode.py emits "1", and the current toolchain is out of |
| 8 date: | 8 date: |
| 9 * Downloads the hermetic mac toolchain | 9 * Downloads the hermetic mac toolchain |
| 10 * Requires gsutil to be configured. | 10 * Requires gsutil to be configured. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 import tarfile | 21 import tarfile |
| 22 import time | 22 import time |
| 23 import tempfile | 23 import tempfile |
| 24 import urllib2 | 24 import urllib2 |
| 25 | 25 |
| 26 # This can be changed after running /build/package_mac_toolchain.py. | 26 # This can be changed after running /build/package_mac_toolchain.py. |
| 27 MAC_TOOLCHAIN_VERSION = '5B1008' | 27 MAC_TOOLCHAIN_VERSION = '5B1008' |
| 28 MAC_TOOLCHAIN_SUB_REVISION = 3 | 28 MAC_TOOLCHAIN_SUB_REVISION = 3 |
| 29 MAC_TOOLCHAIN_VERSION = '%s-%s' % (MAC_TOOLCHAIN_VERSION, | 29 MAC_TOOLCHAIN_VERSION = '%s-%s' % (MAC_TOOLCHAIN_VERSION, |
| 30 MAC_TOOLCHAIN_SUB_REVISION) | 30 MAC_TOOLCHAIN_SUB_REVISION) |
| 31 IOS_TOOLCHAIN_VERSION = '8B62' | 31 IOS_TOOLCHAIN_VERSION = '8A218a' |
| 32 IOS_TOOLCHAIN_SUB_REVISION = 1 | 32 IOS_TOOLCHAIN_SUB_REVISION = 2 |
| 33 IOS_TOOLCHAIN_VERSION = '%s-%s' % (IOS_TOOLCHAIN_VERSION, | 33 IOS_TOOLCHAIN_VERSION = '%s-%s' % (IOS_TOOLCHAIN_VERSION, |
| 34 IOS_TOOLCHAIN_SUB_REVISION) | 34 IOS_TOOLCHAIN_SUB_REVISION) |
| 35 | 35 |
| 36 # Absolute path to src/ directory. | 36 # Absolute path to src/ directory. |
| 37 REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | 37 REPO_ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) |
| 38 | 38 |
| 39 # Absolute path to a file with gclient solutions. | 39 # Absolute path to a file with gclient solutions. |
| 40 GCLIENT_CONFIG = os.path.join(os.path.dirname(REPO_ROOT), '.gclient') | 40 GCLIENT_CONFIG = os.path.join(os.path.dirname(REPO_ROOT), '.gclient') |
| 41 | 41 |
| 42 BASE_DIR = os.path.abspath(os.path.dirname(__file__)) | 42 BASE_DIR = os.path.abspath(os.path.dirname(__file__)) |
| (...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 WriteStampFile(toolchain_version) | 230 WriteStampFile(toolchain_version) |
| 231 return 0 | 231 return 0 |
| 232 except Exception as e: | 232 except Exception as e: |
| 233 print 'Failed to download toolchain %s.' % toolchain_file | 233 print 'Failed to download toolchain %s.' % toolchain_file |
| 234 print 'Exception %s' % e | 234 print 'Exception %s' % e |
| 235 print 'Exiting.' | 235 print 'Exiting.' |
| 236 return 1 | 236 return 1 |
| 237 | 237 |
| 238 if __name__ == '__main__': | 238 if __name__ == '__main__': |
| 239 sys.exit(main()) | 239 sys.exit(main()) |
| OLD | NEW |