[llvm] Fix lto tests that requires ld64
authorSteven Wu <stevenwu@apple.com>
Tue, 22 Jun 2021 16:21:12 +0000 (09:21 -0700)
committerSteven Wu <stevenwu@apple.com>
Tue, 22 Jun 2021 16:21:29 +0000 (09:21 -0700)
commitc747b7d1d9a2c9e4ba82ce93c9273c1662d6994a
tree44e4caf692a6c4280b96d927bd916e8eb9067899
parent3accff2553c00c3237876edd6066e1701c52e66c
[llvm] Fix lto tests that requires ld64

Since Xcode 13, ld64 requires linking libSystem for all the executable.
Fix the tests that needs to run ld64 by linking libSystem from sysroot.

rdar://77332728

Reviewed By: fhahn

Differential Revision: https://reviews.llvm.org/D104332
llvm/test/lit.cfg.py
llvm/test/lit.site.cfg.py.in
llvm/test/tools/lto/hide-linkonce-odr.ll
llvm/test/tools/lto/no-bitcode.s
llvm/test/tools/lto/opt-level.ll
llvm/test/tools/lto/print-stats.ll