> On Dec 9, 2015, at 5:09 PM, Jens Alfke <j...@mooseyard.com> wrote:
> 
> 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?

Follow-up: It appears that it does. Once I enabled LTO in the targets that 
build the static libraries, it took effect in the app, as indicated by much 
longer link times and slightly faster performance.

On the downside, it looks like LTO breaks some of the debug information: once I 
turned it on, when I stop at a breakpoint/crash in the app I can no longer see 
the source code of stack frames in the library code compiled with LTO; I just 
get disassembly. Is there a workaround for that?

—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