I’d like to try out link-time optimization in my project, but that project is a 
framework, which on iOS is built as a static library. I assumed the LTO option 
wouldn't affect building the library since there is no real link phase, so 
instead I enabled it in a separate target that builds an app that uses the 
library. I haven’t seen any speed improvements, though.

Now I’m wondering if LTO also affects the initial code generation, or maybe the 
metadata in the .o files. Does it need to be enabled for all targets that 
contribute code (.o files) to the binary being linked?

(I can’t find any good docs on this feature, btw. Xcode’s doc browser turns up 
nothing at all. Google finds a WWDC 13 talk and some low-level info about LLVM, 
but nothing useful.)

—Jens
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (Xcode-users@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/xcode-users/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to