diff options
author | Nico Weber <thakis@chromium.org> | 2021-06-09 15:16:45 -0400 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2021-06-09 22:08:20 -0400 |
commit | e87c095af3e3b964a7f400a1767ae1e302cfb0c4 (patch) | |
tree | 8914a544be470a51fc34834e6ce837e9b76f51d2 /llvm/lib/CodeGen | |
parent | 91f147792e815d401ae408989992f3c1530cc18a (diff) | |
download | llvm-e87c095af3e3b964a7f400a1767ae1e302cfb0c4.zip llvm-e87c095af3e3b964a7f400a1767ae1e302cfb0c4.tar.gz llvm-e87c095af3e3b964a7f400a1767ae1e302cfb0c4.tar.bz2 |
[lld/mac] Print dylib search details with --print-dylib-search or RC_TRACE_DYLIB_SEARCHING
For debugging dylib loading, it's useful to have some insight into what
the linker is doing.
ld64 has the undocumented RC_TRACE_DYLIB_SEARCHING env var
for this printing dylib search candidates.
This adds a flag --print-dylib-search to make lld print the seame information.
It's useful for users, but also for writing tests. The output is formatted
slightly differently than ld64, but we still support RC_TRACE_DYLIB_SEARCHING
to offer at least a compatible way to trigger this.
ld64 has both `-print_statistics` and `-trace_symbol_output` to enable
diagnostics output. I went with "print" since that seems like a more
straightforward name.
Differential Revision: https://reviews.llvm.org/D103985
Diffstat (limited to 'llvm/lib/CodeGen')
0 files changed, 0 insertions, 0 deletions