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

Side by Side Diff: tools/clang/scripts/update.py

Issue 2560423004: Build and package LLD unconditionally with the bundled Clang (Closed)
Patch Set: Created 4 years 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 | « tools/clang/scripts/package.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 441 matching lines...) Expand 10 before | Expand all | Expand 10 after
452 452
453 DownloadHostGcc(args) 453 DownloadHostGcc(args)
454 AddSvnToPathOnWin() 454 AddSvnToPathOnWin()
455 AddCMakeToPath() 455 AddCMakeToPath()
456 AddGnuWinToPath() 456 AddGnuWinToPath()
457 457
458 DeleteChromeToolsShim() 458 DeleteChromeToolsShim()
459 459
460 Checkout('LLVM', LLVM_REPO_URL + '/llvm/trunk', LLVM_DIR) 460 Checkout('LLVM', LLVM_REPO_URL + '/llvm/trunk', LLVM_DIR)
461 Checkout('Clang', LLVM_REPO_URL + '/cfe/trunk', CLANG_DIR) 461 Checkout('Clang', LLVM_REPO_URL + '/cfe/trunk', CLANG_DIR)
462 if sys.platform == 'win32' or use_head_revision: 462 Checkout('LLD', LLVM_REPO_URL + '/lld/trunk', LLD_DIR)
463 Checkout('LLD', LLVM_REPO_URL + '/lld/trunk', LLD_DIR)
464 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)
465 if sys.platform == 'darwin': 464 if sys.platform == 'darwin':
466 # 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
467 # (i.e. this is needed for bootstrap builds). 466 # (i.e. this is needed for bootstrap builds).
468 Checkout('libcxx', LLVM_REPO_URL + '/libcxx/trunk', LIBCXX_DIR) 467 Checkout('libcxx', LLVM_REPO_URL + '/libcxx/trunk', LIBCXX_DIR)
469 # 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.
470 if os.path.exists(LIBCXXABI_DIR): 469 if os.path.exists(LIBCXXABI_DIR):
471 RmTree(LIBCXXABI_DIR) 470 RmTree(LIBCXXABI_DIR)
472 471
473 cc, cxx = None, None 472 cc, cxx = None, None
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 args.force_local_build = True 902 args.force_local_build = True
904 if 'OS=android' not in os.environ.get('GYP_DEFINES', ''): 903 if 'OS=android' not in os.environ.get('GYP_DEFINES', ''):
905 # Only build the Android ASan rt on ToT bots when targetting Android. 904 # Only build the Android ASan rt on ToT bots when targetting Android.
906 args.with_android = False 905 args.with_android = False
907 906
908 return UpdateClang(args) 907 return UpdateClang(args)
909 908
910 909
911 if __name__ == '__main__': 910 if __name__ == '__main__':
912 sys.exit(main()) 911 sys.exit(main())
OLDNEW
« no previous file with comments | « tools/clang/scripts/package.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698