Chromium Code Reviews| 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 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 450 | 450 |
| 451 DownloadHostGcc(args) | 451 DownloadHostGcc(args) |
| 452 AddSvnToPathOnWin() | 452 AddSvnToPathOnWin() |
| 453 AddCMakeToPath() | 453 AddCMakeToPath() |
| 454 AddGnuWinToPath() | 454 AddGnuWinToPath() |
| 455 | 455 |
| 456 DeleteChromeToolsShim() | 456 DeleteChromeToolsShim() |
| 457 | 457 |
| 458 Checkout('LLVM', LLVM_REPO_URL + '/llvm/trunk', LLVM_DIR) | 458 Checkout('LLVM', LLVM_REPO_URL + '/llvm/trunk', LLVM_DIR) |
| 459 Checkout('Clang', LLVM_REPO_URL + '/cfe/trunk', CLANG_DIR) | 459 Checkout('Clang', LLVM_REPO_URL + '/cfe/trunk', CLANG_DIR) |
| 460 if sys.platform == 'win32' or use_head_revision: | 460 if (sys.platform == 'win32' or sys.platform.startswith('linux') or |
|
Nico
2016/12/13 20:02:23
Do we still need use_head_revision here now that w
krasin1
2016/12/13 20:08:19
It was Peter who set up the LLD ToT bot, but you'r
Nico
2016/12/13 20:12:55
I mean I think we can remove the use_head_revision
| |
| 461 use_head_revision): | |
| 461 Checkout('LLD', LLVM_REPO_URL + '/lld/trunk', LLD_DIR) | 462 Checkout('LLD', LLVM_REPO_URL + '/lld/trunk', LLD_DIR) |
| 462 Checkout('compiler-rt', LLVM_REPO_URL + '/compiler-rt/trunk', COMPILER_RT_DIR) | 463 Checkout('compiler-rt', LLVM_REPO_URL + '/compiler-rt/trunk', COMPILER_RT_DIR) |
| 463 if sys.platform == 'darwin': | 464 if sys.platform == 'darwin': |
| 464 # clang needs a libc++ checkout, else -stdlib=libc++ won't find includes | 465 # clang needs a libc++ checkout, else -stdlib=libc++ won't find includes |
| 465 # (i.e. this is needed for bootstrap builds). | 466 # (i.e. this is needed for bootstrap builds). |
| 466 Checkout('libcxx', LLVM_REPO_URL + '/libcxx/trunk', LIBCXX_DIR) | 467 Checkout('libcxx', LLVM_REPO_URL + '/libcxx/trunk', LIBCXX_DIR) |
| 467 # We used to check out libcxxabi on OS X; we no longer need that. | 468 # We used to check out libcxxabi on OS X; we no longer need that. |
| 468 if os.path.exists(LIBCXXABI_DIR): | 469 if os.path.exists(LIBCXXABI_DIR): |
| 469 RmTree(LIBCXXABI_DIR) | 470 RmTree(LIBCXXABI_DIR) |
| 470 | 471 |
| (...skipping 424 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 895 args.force_local_build = True | 896 args.force_local_build = True |
| 896 if 'OS=android' not in os.environ.get('GYP_DEFINES', ''): | 897 if 'OS=android' not in os.environ.get('GYP_DEFINES', ''): |
| 897 # Only build the Android ASan rt on ToT bots when targetting Android. | 898 # Only build the Android ASan rt on ToT bots when targetting Android. |
| 898 args.with_android = False | 899 args.with_android = False |
| 899 | 900 |
| 900 return UpdateClang(args) | 901 return UpdateClang(args) |
| 901 | 902 |
| 902 | 903 |
| 903 if __name__ == '__main__': | 904 if __name__ == '__main__': |
| 904 sys.exit(main()) | 905 sys.exit(main()) |
| OLD | NEW |