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

Side by Side 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 unified diff | Download patch
« no previous file with comments | « no previous file | tools/clang/scripts/update.py » ('j') | tools/clang/scripts/update.py » ('J')
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) 2015 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2015 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 will check out llvm and clang, and then package the results up 6 """This script will check out llvm and clang, and then package the results up
7 to a tgz file.""" 7 to a tgz file."""
8 8
9 import argparse 9 import argparse
10 import fnmatch 10 import fnmatch
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 objdumpdir = 'llvmobjdump-' + stamp 294 objdumpdir = 'llvmobjdump-' + stamp
295 shutil.rmtree(objdumpdir, ignore_errors=True) 295 shutil.rmtree(objdumpdir, ignore_errors=True)
296 os.makedirs(os.path.join(objdumpdir, 'bin')) 296 os.makedirs(os.path.join(objdumpdir, 'bin'))
297 shutil.copy(os.path.join(LLVM_RELEASE_DIR, 'bin', 'llvm-objdump' + exe_ext), 297 shutil.copy(os.path.join(LLVM_RELEASE_DIR, 'bin', 'llvm-objdump' + exe_ext),
298 os.path.join(objdumpdir, 'bin')) 298 os.path.join(objdumpdir, 'bin'))
299 with tarfile.open(objdumpdir + '.tgz', 'w:gz') as tar: 299 with tarfile.open(objdumpdir + '.tgz', 'w:gz') as tar:
300 tar.add(os.path.join(objdumpdir, 'bin'), arcname='bin', 300 tar.add(os.path.join(objdumpdir, 'bin'), arcname='bin',
301 filter=PrintTarProgress) 301 filter=PrintTarProgress)
302 MaybeUpload(args, objdumpdir, platform) 302 MaybeUpload(args, objdumpdir, platform)
303 303
304 # Zip up PDB file on Windows.
305 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
306 if sys.platform == 'win32':
307 shutil.rmtree(pdbdir, ignore_errors=True)
308 shutil.copy(os.path.join(LLVM_RELEASE_DIR, 'bin', 'clang.pdb'), pdbdir)
309 with tarfile.open(pdbdir + '.tgz', 'w:gz') as tar:
310 tar.add(pdbdir, filter=PrintTarProgress)
311 MaybeUpload(args, pdbdir, platform)
312
304 # FIXME: Warn if the file already exists on the server. 313 # FIXME: Warn if the file already exists on the server.
305 314
306 315
307 if __name__ == '__main__': 316 if __name__ == '__main__':
308 sys.exit(main()) 317 sys.exit(main())
OLDNEW
« 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