OLD | NEW |
---|---|
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 Loading... | |
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()) |
OLD | NEW |