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

Side by Side Diff: tools/clang/scripts/package.py

Issue 2247913002: clang: Include sancov binary in prebuilt archive. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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 | no next file » | no next file with comments »
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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 if stamp != expected_stamp: 188 if stamp != expected_stamp:
189 print 'Actual stamp (%s) != expected stamp (%s).' % (stamp, expected_stamp) 189 print 'Actual stamp (%s) != expected stamp (%s).' % (stamp, expected_stamp)
190 return 1 190 return 1
191 191
192 shutil.rmtree(pdir, ignore_errors=True) 192 shutil.rmtree(pdir, ignore_errors=True)
193 193
194 # Copy a whitelist of files to the directory we're going to tar up. 194 # Copy a whitelist of files to the directory we're going to tar up.
195 # This supports the same patterns that the fnmatch module understands. 195 # This supports the same patterns that the fnmatch module understands.
196 exe_ext = '.exe' if sys.platform == 'win32' else '' 196 exe_ext = '.exe' if sys.platform == 'win32' else ''
197 want = ['bin/llvm-symbolizer' + exe_ext, 197 want = ['bin/llvm-symbolizer' + exe_ext,
198 'bin/sancov' + exe_ext,
198 'lib/clang/*/asan_blacklist.txt', 199 'lib/clang/*/asan_blacklist.txt',
199 'lib/clang/*/cfi_blacklist.txt', 200 'lib/clang/*/cfi_blacklist.txt',
200 # Copy built-in headers (lib/clang/3.x.y/include). 201 # Copy built-in headers (lib/clang/3.x.y/include).
201 'lib/clang/*/include/*', 202 'lib/clang/*/include/*',
202 ] 203 ]
203 if sys.platform == 'win32': 204 if sys.platform == 'win32':
204 want.append('bin/clang-cl.exe') 205 want.append('bin/clang-cl.exe')
205 want.append('bin/lld-link.exe') 206 want.append('bin/lld-link.exe')
206 else: 207 else:
207 so_ext = 'dylib' if sys.platform == 'darwin' else 'so' 208 so_ext = 'dylib' if sys.platform == 'darwin' else 'so'
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
297 with tarfile.open(objdumpdir + '.tgz', 'w:gz') as tar: 298 with tarfile.open(objdumpdir + '.tgz', 'w:gz') as tar:
298 tar.add(os.path.join(objdumpdir, 'bin'), arcname='bin', 299 tar.add(os.path.join(objdumpdir, 'bin'), arcname='bin',
299 filter=PrintTarProgress) 300 filter=PrintTarProgress)
300 MaybeUpload(args, objdumpdir, platform) 301 MaybeUpload(args, objdumpdir, platform)
301 302
302 # FIXME: Warn if the file already exists on the server. 303 # FIXME: Warn if the file already exists on the server.
303 304
304 305
305 if __name__ == '__main__': 306 if __name__ == '__main__':
306 sys.exit(main()) 307 sys.exit(main())
OLDNEW
« 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