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

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

Issue 2579573002: clean up stale LLD checkouts on mac and linux bots (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 | « no previous file | 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 443 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 if sys.platform == 'win32' or use_head_revision:
463 Checkout('LLD', LLVM_REPO_URL + '/lld/trunk', LLD_DIR) 463 Checkout('LLD', LLVM_REPO_URL + '/lld/trunk', LLD_DIR)
464 elif os.path.exists(LLD_DIR):
465 # In case someone sends a tryjob that temporary adds lld to the checkout,
466 # make sure it's not around on future builds.
467 RmTree(LLD_DIR)
464 Checkout('compiler-rt', LLVM_REPO_URL + '/compiler-rt/trunk', COMPILER_RT_DIR) 468 Checkout('compiler-rt', LLVM_REPO_URL + '/compiler-rt/trunk', COMPILER_RT_DIR)
465 if sys.platform == 'darwin': 469 if sys.platform == 'darwin':
466 # clang needs a libc++ checkout, else -stdlib=libc++ won't find includes 470 # clang needs a libc++ checkout, else -stdlib=libc++ won't find includes
467 # (i.e. this is needed for bootstrap builds). 471 # (i.e. this is needed for bootstrap builds).
468 Checkout('libcxx', LLVM_REPO_URL + '/libcxx/trunk', LIBCXX_DIR) 472 Checkout('libcxx', LLVM_REPO_URL + '/libcxx/trunk', LIBCXX_DIR)
469 # We used to check out libcxxabi on OS X; we no longer need that. 473 # We used to check out libcxxabi on OS X; we no longer need that.
470 if os.path.exists(LIBCXXABI_DIR): 474 if os.path.exists(LIBCXXABI_DIR):
471 RmTree(LIBCXXABI_DIR) 475 RmTree(LIBCXXABI_DIR)
472 476
473 cc, cxx = None, None 477 cc, cxx = None, None
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
903 args.force_local_build = True 907 args.force_local_build = True
904 if 'OS=android' not in os.environ.get('GYP_DEFINES', ''): 908 if 'OS=android' not in os.environ.get('GYP_DEFINES', ''):
905 # Only build the Android ASan rt on ToT bots when targetting Android. 909 # Only build the Android ASan rt on ToT bots when targetting Android.
906 args.with_android = False 910 args.with_android = False
907 911
908 return UpdateClang(args) 912 return UpdateClang(args)
909 913
910 914
911 if __name__ == '__main__': 915 if __name__ == '__main__':
912 sys.exit(main()) 916 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698