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

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

Issue 1887163003: clang/win update.py: Put gnuwin last in path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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
« 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 309 matching lines...) Expand 10 before | Expand all | Expand 10 after
320 gnuwin_dir = os.path.join(LLVM_BUILD_TOOLS_DIR, 'gnuwin') 320 gnuwin_dir = os.path.join(LLVM_BUILD_TOOLS_DIR, 'gnuwin')
321 GNUWIN_VERSION = '1' 321 GNUWIN_VERSION = '1'
322 GNUWIN_STAMP = os.path.join(gnuwin_dir, 'stamp') 322 GNUWIN_STAMP = os.path.join(gnuwin_dir, 'stamp')
323 if ReadStampFile(GNUWIN_STAMP) == GNUWIN_VERSION: 323 if ReadStampFile(GNUWIN_STAMP) == GNUWIN_VERSION:
324 print 'GNU Win tools already up to date.' 324 print 'GNU Win tools already up to date.'
325 else: 325 else:
326 zip_name = 'gnuwin-%s.zip' % GNUWIN_VERSION 326 zip_name = 'gnuwin-%s.zip' % GNUWIN_VERSION
327 DownloadAndUnpack(CDS_URL + '/tools/' + zip_name, LLVM_BUILD_TOOLS_DIR) 327 DownloadAndUnpack(CDS_URL + '/tools/' + zip_name, LLVM_BUILD_TOOLS_DIR)
328 WriteStampFile(GNUWIN_VERSION, GNUWIN_STAMP) 328 WriteStampFile(GNUWIN_VERSION, GNUWIN_STAMP)
329 329
330 os.environ['PATH'] = gnuwin_dir + os.pathsep + os.environ.get('PATH', '') 330 os.environ['PATH'] = os.environ.get('PATH', '') + os.pathsep + gnuwin_dir
331 331
332 332
333 vs_version = None 333 vs_version = None
334 def GetVSVersion(): 334 def GetVSVersion():
335 global vs_version 335 global vs_version
336 if vs_version: 336 if vs_version:
337 return vs_version 337 return vs_version
338 338
339 # Try using the toolchain in depot_tools. 339 # Try using the toolchain in depot_tools.
340 # This sets environment variables used by SelectVisualStudioVersion below. 340 # This sets environment variables used by SelectVisualStudioVersion below.
(...skipping 520 matching lines...) Expand 10 before | Expand all | Expand 10 after
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())
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