Chromium Code Reviews| Index: tools/clang/scripts/package.py |
| diff --git a/tools/clang/scripts/package.py b/tools/clang/scripts/package.py |
| index 17181098f97a3d2f08f462710a3e213e68c80727..1e570cab3590998441056c446896bc73e9cfa765 100755 |
| --- a/tools/clang/scripts/package.py |
| +++ b/tools/clang/scripts/package.py |
| @@ -221,6 +221,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') |
|
Nico
2017/02/08 20:02:00
do we need this? on windows we run `lld-link /lib`
krasin1
2017/02/08 20:36:41
yes, we do. Right now, when we do an LTO build, ar
|
| + want.append('bin/lld') |
| # Copy only |
| # lib/clang/*/lib/linux/libclang_rt.{[atm]san,san,ubsan,profile}-*.a , |
| # but not dfsan. |
| @@ -261,6 +264,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++'), |