| Index: tools/clang/scripts/package.py
|
| diff --git a/tools/clang/scripts/package.py b/tools/clang/scripts/package.py
|
| index 93203a7bd47048367b1e6c947fe1371d2fbd91a5..85840cdf008db46eb8ee47b2e25a5bb12ad1bfe3 100755
|
| --- a/tools/clang/scripts/package.py
|
| +++ b/tools/clang/scripts/package.py
|
| @@ -271,6 +271,9 @@ def main():
|
| elif sys.platform.startswith('linux'):
|
| # Copy the libstdc++.so.6 we linked Clang against so it can run.
|
| want.append('lib/libstdc++.so.6')
|
| + # Add llvm-ar and lld for LTO.
|
| + want.append('bin/llvm-ar')
|
| + want.append('bin/lld')
|
| # Copy only
|
| # lib/clang/*/lib/linux/libclang_rt.{[atm]san,san,ubsan,profile}-*.a ,
|
| # but not dfsan.
|
| @@ -311,6 +314,9 @@ def main():
|
| os.symlink('clang', os.path.join(pdir, 'bin', 'clang++'))
|
| os.symlink('clang', os.path.join(pdir, 'bin', 'clang-cl'))
|
|
|
| + if sys.platform.startswith('linux'):
|
| + os.symlink('lld', os.path.join(pdir, 'bin', 'ld.lld'))
|
| +
|
| # Copy libc++ headers.
|
| if sys.platform == 'darwin':
|
| shutil.copytree(os.path.join(LLVM_BOOTSTRAP_INSTALL_DIR, 'include', 'c++'),
|
|
|