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

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

Issue 1925843002: Make the GN build flag 'use_lld' usable on Linux. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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
« build/config/compiler/BUILD.gn ('K') | « build/toolchain/win/BUILD.gn ('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 410 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 return 1 421 return 1
422 422
423 DownloadHostGcc(args) 423 DownloadHostGcc(args)
424 AddCMakeToPath() 424 AddCMakeToPath()
425 AddGnuWinToPath() 425 AddGnuWinToPath()
426 426
427 DeleteChromeToolsShim() 427 DeleteChromeToolsShim()
428 428
429 Checkout('LLVM', LLVM_REPO_URL + '/llvm/trunk', LLVM_DIR) 429 Checkout('LLVM', LLVM_REPO_URL + '/llvm/trunk', LLVM_DIR)
430 Checkout('Clang', LLVM_REPO_URL + '/cfe/trunk', CLANG_DIR) 430 Checkout('Clang', LLVM_REPO_URL + '/cfe/trunk', CLANG_DIR)
431 if sys.platform == 'win32': 431 if sys.platform == 'win32' or use_head_revision:
432 Checkout('LLD', LLVM_REPO_URL + '/lld/trunk', LLD_DIR) 432 Checkout('LLD', LLVM_REPO_URL + '/lld/trunk', LLD_DIR)
433 Checkout('compiler-rt', LLVM_REPO_URL + '/compiler-rt/trunk', COMPILER_RT_DIR) 433 Checkout('compiler-rt', LLVM_REPO_URL + '/compiler-rt/trunk', COMPILER_RT_DIR)
434 if sys.platform == 'darwin': 434 if sys.platform == 'darwin':
435 # clang needs a libc++ checkout, else -stdlib=libc++ won't find includes 435 # clang needs a libc++ checkout, else -stdlib=libc++ won't find includes
436 # (i.e. this is needed for bootstrap builds). 436 # (i.e. this is needed for bootstrap builds).
437 Checkout('libcxx', LLVM_REPO_URL + '/libcxx/trunk', LIBCXX_DIR) 437 Checkout('libcxx', LLVM_REPO_URL + '/libcxx/trunk', LIBCXX_DIR)
438 # We used to check out libcxxabi on OS X; we no longer need that. 438 # We used to check out libcxxabi on OS X; we no longer need that.
439 if os.path.exists(LIBCXXABI_DIR): 439 if os.path.exists(LIBCXXABI_DIR):
440 RmTree(LIBCXXABI_DIR) 440 RmTree(LIBCXXABI_DIR)
441 441
(...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after
869 args.force_local_build = True 869 args.force_local_build = True
870 if 'OS=android' not in os.environ.get('GYP_DEFINES', ''): 870 if 'OS=android' not in os.environ.get('GYP_DEFINES', ''):
871 # Only build the Android ASan rt on ToT bots when targetting Android. 871 # Only build the Android ASan rt on ToT bots when targetting Android.
872 args.with_android = False 872 args.with_android = False
873 873
874 return UpdateClang(args) 874 return UpdateClang(args)
875 875
876 876
877 if __name__ == '__main__': 877 if __name__ == '__main__':
878 sys.exit(main()) 878 sys.exit(main())
OLDNEW
« build/config/compiler/BUILD.gn ('K') | « build/toolchain/win/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698