mehdi_amini added a comment.

We ship `clang + libLTO + ld64` bundled in the toolchain, so even if you don't 
package libLTO yourself, it is already accessible from the linker: it will use 
the one in the toolchain when needed.

I don't have an immediate idea to prevent this and have the linker issue an 
error (other than removing manually libLTO from the Xcode installation).

This is the motivation behind the warning I believe: we're trying to prevent 
this situation where a user would have clang but not his own libLTO and may 
encounter an unexpected issue. Even when the user does not opt-in to build his 
own project with LTO enabled, there can be static archive dependencies that 
contain bitcode.


Repository:
  rL LLVM

https://reviews.llvm.org/D25932



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

Reply via email to