[PATCH] D38290: Add a ld64.lld alias for the MACHO LLD target
Martell Malone via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Wed Sep 27 23:18:18 PDT 2017
martell added a comment.
In https://reviews.llvm.org/D38290#882911, @ruiu wrote:
> Is this for cross-compilation?
It is mostly for native compilation on mac but this will work for cross compiling also.
> If you invoke lld on macOS, it should act as ld64.
That is if the file name is `ld` or if you pass the `darwin` flavour but that is not how clang invokes lld.
`-fuse-ld=lld` invokes `ld.lld` which is bound to the gnu frontend only even on MacOS hosts.
The reason for introducing ld64 is so we can still cross compile from MacOS to linux targets cleanly.
More information about the cfe-commits