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.


Repository:
  rL LLVM

https://reviews.llvm.org/D38290



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to