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

Unified Diff: tools/clang/scripts/update.py

Issue 341963002: Use a faster rolling fixed Clang revision for ASan on Windows (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/scripts/update.py
diff --git a/tools/clang/scripts/update.py b/tools/clang/scripts/update.py
index d0ba8830786cddd1699791954969c93757b118de..8f567901c887d6bd9cc7382e09694721a3974ade 100755
--- a/tools/clang/scripts/update.py
+++ b/tools/clang/scripts/update.py
@@ -16,7 +16,14 @@ import sys
# https://code.google.com/p/chromium/wiki/UpdatingClang
# Reverting problematic clang rolls is safe, though.
# Note: this revision is only used for Windows. Other platforms use update.sh.
-LLVM_WIN_REVISION = 'HEAD'
+CLANG_REVISION = os.environ.get('LLVM_WIN_REVISION', '209387')
Nico 2014/06/18 17:56:57 The bots should continue building HEAD, right? So
Reid Kleckner 2014/06/18 19:44:33 Yes. They have LLVM_WIN_REVISION=HEAD in the envi
Nico 2014/06/18 19:54:01 Yes, that's a long-term goal. It's strange to put
Reid Kleckner 2014/06/18 20:11:26 OK, I'll do that.
+
+# Use a more quickly rolling Clang revision for ASan on Windows.
Nico 2014/06/18 17:56:57 I'd say something like # ASan on Windows is usefu
Reid Kleckner 2014/06/18 19:44:33 I'll do this if we decide to go back to 'HEAD' as
+# TODO(timurrrr): Use the standard Clang revision above when ASan on Windows has
+# stabilized.
+if (sys.platform in ['win32', 'cygwin'] and
+ re.search(r'\b(asan)=1', os.environ.get('GYP_DEFINES', ''))):
+ CLANG_REVISION = '210586'
# Path constants. (All of these should be absolute paths.)
THIS_DIR = os.path.abspath(os.path.dirname(__file__))
@@ -88,9 +95,9 @@ def CopyFile(src, dst):
def Checkout(name, url, dir):
"""Checkout the SVN module at url into dir. Use name for the log message."""
- print "Checking out %s r%s into '%s'" % (name, LLVM_WIN_REVISION, dir)
+ print "Checking out %s r%s into '%s'" % (name, CLANG_REVISION, dir)
RunCommand(['svn', 'checkout', '--force',
- url + '@' + LLVM_WIN_REVISION, dir], tries=2)
+ url + '@' + CLANG_REVISION, dir], tries=2)
vs_version = None
@@ -107,8 +114,8 @@ def GetVSVersion():
def UpdateClang():
- print 'Updating Clang to %s...' % (LLVM_WIN_REVISION)
- if LLVM_WIN_REVISION != 'HEAD' and ReadStampFile() == LLVM_WIN_REVISION:
+ print 'Updating Clang to %s...' % CLANG_REVISION
+ if CLANG_REVISION != 'HEAD' and ReadStampFile() == CLANG_REVISION:
print 'Already up to date.'
return 0
@@ -174,7 +181,7 @@ def UpdateClang():
CopyFile(os.path.join(sanitizer_include_dir, f),
aux_sanitizer_include_dir)
- WriteStampFile(LLVM_WIN_REVISION)
+ WriteStampFile(CLANG_REVISION)
print 'Clang update was successful.'
return 0
« 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