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

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

Issue 286193002: Win-clang update script: copy asan_blacklist.txt into the right place. (Closed) Base URL: https://chromium.googlesource.com/chromium/src
Patch Set: Created 6 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 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 a57bd0de67b72caca3f31a8deeb87b12969ad9a9..7f2b7256369201885577717ea4960b162cdd18a3 100755
--- a/tools/clang/scripts/update.py
+++ b/tools/clang/scripts/update.py
@@ -81,6 +81,10 @@ def RunCommand(command, tries=1):
print 'Failed.'
sys.exit(1)
+def CopyFile(src, dst):
+ """Copy a file from src to dst."""
+ shutil.copy(src, dst)
+ print "Copying %s to %s" % (src, dst)
def Checkout(name, url, dir):
"""Checkout the SVN module at url into dir. Use name for the log message."""
@@ -151,8 +155,10 @@ def UpdateClang():
for root, _, files in os.walk(asan_rt_lib_src_dir):
for f in files:
if re.match(r'^.*-i386\.lib$', f):
- shutil.copy(os.path.join(root, f), asan_rt_lib_dst_dir)
- print "Copying %s to %s" % (f, asan_rt_lib_dst_dir)
+ CopyFile(os.path.join(root, f), asan_rt_lib_dst_dir)
+
+ CopyFile(os.path.join(asan_rt_lib_src_dir, '..', '..', 'asan_blacklist.txt'),
+ os.path.join(asan_rt_lib_dst_dir, '..', '..'))
WriteStampFile(LLVM_WIN_REVISION)
print 'Clang update was successful.'
« 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