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. |