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

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

Issue 1323843003: Clang: Include all sanitizer blacklists in LLVM package. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Explicitly add cfi_blacklist Created 5 years, 3 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 stamp = open(STAMP_FILE).read().rstrip() 111 stamp = open(STAMP_FILE).read().rstrip()
112 pdir = 'clang-' + stamp 112 pdir = 'clang-' + stamp
113 print pdir 113 print pdir
114 shutil.rmtree(pdir, ignore_errors=True) 114 shutil.rmtree(pdir, ignore_errors=True)
115 115
116 # Copy a whitelist of files to the directory we're going to tar up. 116 # Copy a whitelist of files to the directory we're going to tar up.
117 # This supports the same patterns that the fnmatch module understands. 117 # This supports the same patterns that the fnmatch module understands.
118 exe_ext = '.exe' if sys.platform == 'win32' else '' 118 exe_ext = '.exe' if sys.platform == 'win32' else ''
119 want = ['bin/llvm-symbolizer' + exe_ext, 119 want = ['bin/llvm-symbolizer' + exe_ext,
120 'lib/clang/*/asan_blacklist.txt', 120 'lib/clang/*/asan_blacklist.txt',
121 'lib/clang/*/cfi_blacklist.txt',
121 # Copy built-in headers (lib/clang/3.x.y/include). 122 # Copy built-in headers (lib/clang/3.x.y/include).
122 'lib/clang/*/include/*', 123 'lib/clang/*/include/*',
123 ] 124 ]
124 if sys.platform == 'win32': 125 if sys.platform == 'win32':
125 want.append('bin/clang-cl.exe') 126 want.append('bin/clang-cl.exe')
126 want.append('bin/lld-link.exe') 127 want.append('bin/lld-link.exe')
127 else: 128 else:
128 so_ext = 'dylib' if sys.platform == 'darwin' else 'so' 129 so_ext = 'dylib' if sys.platform == 'darwin' else 'so'
129 want.extend(['bin/clang', 130 want.extend(['bin/clang',
130 'lib/libFindBadConstructs.' + so_ext, 131 'lib/libFindBadConstructs.' + so_ext,
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 filter=PrintTarProgress) 229 filter=PrintTarProgress)
229 print ('gsutil cp -a public-read %s.tgz ' 230 print ('gsutil cp -a public-read %s.tgz '
230 'gs://chromium-browser-clang/%s/%s.tgz') % (golddir, platform, 231 'gs://chromium-browser-clang/%s/%s.tgz') % (golddir, platform,
231 golddir) 232 golddir)
232 233
233 # FIXME: Warn if the file already exists on the server. 234 # FIXME: Warn if the file already exists on the server.
234 235
235 236
236 if __name__ == '__main__': 237 if __name__ == '__main__':
237 sys.exit(main()) 238 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