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

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

Issue 2709613004: upload clang pdbs to chrome's symbol server (Closed)
Patch Set: package Created 3 years, 10 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 | tools/clang/scripts/update.py » ('j') | tools/clang/scripts/update.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/scripts/package.py
diff --git a/tools/clang/scripts/package.py b/tools/clang/scripts/package.py
index 17181098f97a3d2f08f462710a3e213e68c80727..93495557f67aa1b71764d94b5e5ca79e8569848d 100755
--- a/tools/clang/scripts/package.py
+++ b/tools/clang/scripts/package.py
@@ -301,6 +301,15 @@ def main():
filter=PrintTarProgress)
MaybeUpload(args, objdumpdir, platform)
+ # Zip up PDB file on Windows.
+ pdbdir = 'clangpdb-' + stamp
Nico 2017/02/21 23:10:11 I have many questions about this part. 1. The bug
scottmg 2017/02/21 23:38:49 Yes, chromium-browser-symsrv is better because Chr
+ if sys.platform == 'win32':
+ shutil.rmtree(pdbdir, ignore_errors=True)
+ shutil.copy(os.path.join(LLVM_RELEASE_DIR, 'bin', 'clang.pdb'), pdbdir)
+ with tarfile.open(pdbdir + '.tgz', 'w:gz') as tar:
+ tar.add(pdbdir, filter=PrintTarProgress)
+ MaybeUpload(args, pdbdir, platform)
+
# FIXME: Warn if the file already exists on the server.
« no previous file with comments | « no previous file | tools/clang/scripts/update.py » ('j') | tools/clang/scripts/update.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698