[PATCH] lld: handling of -flavor / -core command line switches

Oleg Ranevskyy llvm.mail.list at gmail.com
Tue Sep 23 01:38:16 PDT 2014


>>! In D5384#23, @Bigcheese wrote:
> I'm fine with your change. But I'm confused as to why you're not just making a symlink to lld named ld and using that, without passing -flavor. The main lld interface is only intended for testing.

Thank you.
Yes, I totally agree with you. This is exactly the way I'm using it.

When I found this problem I didn't know yet that -flavor is optional if lld is symlinked/renamed to ld. Nevertheless, still nothing prevents a user from providing -flavor directly. There is the -core option that has the same problem. Moreover, while symlinking is a good practice of using lld, this is not something that is forced to be done. I spent some time figuring out why lld was showing the errors I mentioned previously. Hope the patch saves someone else's time in the future.

http://reviews.llvm.org/D5384






More information about the llvm-commits mailing list