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

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

Issue 2948413002: Add a symlink called lld-link to the clang package. (Closed)
Patch Set: Created 3 years, 5 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 300 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 os.path.splitext(f)[1] in ['.so', '.a']): 311 os.path.splitext(f)[1] in ['.so', '.a']):
312 subprocess.call(['strip', '-g', dest]) 312 subprocess.call(['strip', '-g', dest])
313 313
314 # Set up symlinks. 314 # Set up symlinks.
315 if sys.platform != 'win32': 315 if sys.platform != 'win32':
316 os.symlink('clang', os.path.join(pdir, 'bin', 'clang++')) 316 os.symlink('clang', os.path.join(pdir, 'bin', 'clang++'))
317 os.symlink('clang', os.path.join(pdir, 'bin', 'clang-cl')) 317 os.symlink('clang', os.path.join(pdir, 'bin', 'clang-cl'))
318 318
319 if sys.platform.startswith('linux'): 319 if sys.platform.startswith('linux'):
320 os.symlink('lld', os.path.join(pdir, 'bin', 'ld.lld')) 320 os.symlink('lld', os.path.join(pdir, 'bin', 'ld.lld'))
321 os.symlink('lld', os.path.join(pdir, 'bin', 'lld-link'))
321 322
322 # Copy libc++ headers. 323 # Copy libc++ headers.
323 if sys.platform == 'darwin': 324 if sys.platform == 'darwin':
324 shutil.copytree(os.path.join(LLVM_BOOTSTRAP_INSTALL_DIR, 'include', 'c++'), 325 shutil.copytree(os.path.join(LLVM_BOOTSTRAP_INSTALL_DIR, 'include', 'c++'),
325 os.path.join(pdir, 'include', 'c++')) 326 os.path.join(pdir, 'include', 'c++'))
326 327
327 # Copy tcmalloc from the binutils package. 328 # Copy tcmalloc from the binutils package.
328 # FIXME: We should eventually be building our own copy. 329 # FIXME: We should eventually be building our own copy.
329 if sys.platform.startswith('linux'): 330 if sys.platform.startswith('linux'):
330 shutil.copy(os.path.join(BINUTILS_LIB_DIR, 'libtcmalloc_minimal.so.4'), 331 shutil.copy(os.path.join(BINUTILS_LIB_DIR, 'libtcmalloc_minimal.so.4'),
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 MaybeUpload(args, translation_unit_dir, platform) 379 MaybeUpload(args, translation_unit_dir, platform)
379 380
380 if sys.platform == 'win32' and args.upload: 381 if sys.platform == 'win32' and args.upload:
381 UploadPDBToSymbolServer() 382 UploadPDBToSymbolServer()
382 383
383 # FIXME: Warn if the file already exists on the server. 384 # FIXME: Warn if the file already exists on the server.
384 385
385 386
386 if __name__ == '__main__': 387 if __name__ == '__main__':
387 sys.exit(main()) 388 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