ruiu added a comment. There's a hidden path to pass information to the lld-link driver; LINK environment variable is interpreted and parsed as part of command line. Maybe you can use it for debugging? https://reviews.llvm.org/D39512