| OLD | NEW |
| 1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
| 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 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 """This script is used to download prebuilt clang binaries. | 6 """This script is used to download prebuilt clang binaries. |
| 7 | 7 |
| 8 It is also used by package.py to build the prebuilt clang binaries.""" | 8 It is also used by package.py to build the prebuilt clang binaries.""" |
| 9 | 9 |
| 10 import argparse | 10 import argparse |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 # Do NOT CHANGE this if you don't know what you're doing -- see | 26 # Do NOT CHANGE this if you don't know what you're doing -- see |
| 27 # https://chromium.googlesource.com/chromium/src/+/master/docs/updating_clang.md | 27 # https://chromium.googlesource.com/chromium/src/+/master/docs/updating_clang.md |
| 28 # Reverting problematic clang rolls is safe, though. | 28 # Reverting problematic clang rolls is safe, though. |
| 29 CLANG_REVISION = '264915' | 29 CLANG_REVISION = '264915' |
| 30 | 30 |
| 31 use_head_revision = 'LLVM_FORCE_HEAD_REVISION' in os.environ | 31 use_head_revision = 'LLVM_FORCE_HEAD_REVISION' in os.environ |
| 32 if use_head_revision: | 32 if use_head_revision: |
| 33 CLANG_REVISION = 'HEAD' | 33 CLANG_REVISION = 'HEAD' |
| 34 | 34 |
| 35 # This is incremented when pushing a new build of Clang at the same revision. | 35 # This is incremented when pushing a new build of Clang at the same revision. |
| 36 CLANG_SUB_REVISION=1 | 36 CLANG_SUB_REVISION=1850813007 |
| 37 | 37 |
| 38 PACKAGE_VERSION = "%s-%s" % (CLANG_REVISION, CLANG_SUB_REVISION) | 38 PACKAGE_VERSION = "%s-%s" % (CLANG_REVISION, CLANG_SUB_REVISION) |
| 39 | 39 |
| 40 # Path constants. (All of these should be absolute paths.) | 40 # Path constants. (All of these should be absolute paths.) |
| 41 THIS_DIR = os.path.abspath(os.path.dirname(__file__)) | 41 THIS_DIR = os.path.abspath(os.path.dirname(__file__)) |
| 42 CHROMIUM_DIR = os.path.abspath(os.path.join(THIS_DIR, '..', '..', '..')) | 42 CHROMIUM_DIR = os.path.abspath(os.path.join(THIS_DIR, '..', '..', '..')) |
| 43 THIRD_PARTY_DIR = os.path.join(CHROMIUM_DIR, 'third_party') | 43 THIRD_PARTY_DIR = os.path.join(CHROMIUM_DIR, 'third_party') |
| 44 LLVM_DIR = os.path.join(THIRD_PARTY_DIR, 'llvm') | 44 LLVM_DIR = os.path.join(THIRD_PARTY_DIR, 'llvm') |
| 45 LLVM_BOOTSTRAP_DIR = os.path.join(THIRD_PARTY_DIR, 'llvm-bootstrap') | 45 LLVM_BOOTSTRAP_DIR = os.path.join(THIRD_PARTY_DIR, 'llvm-bootstrap') |
| 46 LLVM_BOOTSTRAP_INSTALL_DIR = os.path.join(THIRD_PARTY_DIR, | 46 LLVM_BOOTSTRAP_INSTALL_DIR = os.path.join(THIRD_PARTY_DIR, |
| (...skipping 814 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 861 args.force_local_build = True | 861 args.force_local_build = True |
| 862 if 'OS=android' not in os.environ.get('GYP_DEFINES', ''): | 862 if 'OS=android' not in os.environ.get('GYP_DEFINES', ''): |
| 863 # Only build the Android ASan rt on ToT bots when targetting Android. | 863 # Only build the Android ASan rt on ToT bots when targetting Android. |
| 864 args.with_android = False | 864 args.with_android = False |
| 865 | 865 |
| 866 return UpdateClang(args) | 866 return UpdateClang(args) |
| 867 | 867 |
| 868 | 868 |
| 869 if __name__ == '__main__': | 869 if __name__ == '__main__': |
| 870 sys.exit(main()) | 870 sys.exit(main()) |
| OLD | NEW |