[lld-macho] Don't rewrite -rpath arguments in response file
authorJez Ng <jezng@fb.com>
Fri, 16 Dec 2022 04:52:42 +0000 (23:52 -0500)
committerJez Ng <jezng@fb.com>
Fri, 16 Dec 2022 04:52:42 +0000 (23:52 -0500)
commitb6772e6e2045ab491b41d3767f788250800f97ea
treeed419c8c4067e9150a5777ec183bb9c61cac2689
parent5a06334c51aa75d7f044785a495cf2de5bf13a9c
[lld-macho] Don't rewrite -rpath arguments in response file

We only want to rewrite paths to files that the linker looks up. Files
under RPATH are looked up at runtime by dyld.

Reviewed By: #lld-macho, keith

Differential Revision: https://reviews.llvm.org/D140167
lld/MachO/DriverUtils.cpp
lld/test/MachO/reproduce.s