| 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 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 # Copy built-in headers (lib/clang/3.x.y/include). | 121 # Copy built-in headers (lib/clang/3.x.y/include). |
| 122 'lib/clang/*/include/*', | 122 'lib/clang/*/include/*', |
| 123 ] | 123 ] |
| 124 if sys.platform == 'win32': | 124 if sys.platform == 'win32': |
| 125 want.append('bin/clang-cl.exe') | 125 want.append('bin/clang-cl.exe') |
| 126 want.append('bin/lld-link.exe') |
| 126 else: | 127 else: |
| 127 so_ext = 'dylib' if sys.platform == 'darwin' else 'so' | 128 so_ext = 'dylib' if sys.platform == 'darwin' else 'so' |
| 128 want.extend(['bin/clang', | 129 want.extend(['bin/clang', |
| 129 'lib/libFindBadConstructs.' + so_ext, | 130 'lib/libFindBadConstructs.' + so_ext, |
| 130 'lib/libBlinkGCPlugin.' + so_ext, | 131 'lib/libBlinkGCPlugin.' + so_ext, |
| 131 ]) | 132 ]) |
| 132 if sys.platform == 'darwin': | 133 if sys.platform == 'darwin': |
| 133 want.extend(['bin/libc++.1.dylib', | 134 want.extend(['bin/libc++.1.dylib', |
| 134 # Copy only the OSX (ASan and profile) and iossim (ASan) | 135 # Copy only the OSX (ASan and profile) and iossim (ASan) |
| 135 # runtime libraries: | 136 # runtime libraries: |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 227 filter=PrintTarProgress) | 228 filter=PrintTarProgress) |
| 228 print ('gsutil cp -a public-read %s.tgz ' | 229 print ('gsutil cp -a public-read %s.tgz ' |
| 229 'gs://chromium-browser-clang/%s/%s.tgz') % (golddir, platform, | 230 'gs://chromium-browser-clang/%s/%s.tgz') % (golddir, platform, |
| 230 golddir) | 231 golddir) |
| 231 | 232 |
| 232 # FIXME: Warn if the file already exists on the server. | 233 # FIXME: Warn if the file already exists on the server. |
| 233 | 234 |
| 234 | 235 |
| 235 if __name__ == '__main__': | 236 if __name__ == '__main__': |
| 236 sys.exit(main()) | 237 sys.exit(main()) |
| OLD | NEW |