Hi All
How do I get Link-time Optimization to work in Xcode 3.2.5 + iOS 4.2.1 SDK?
When I create a new Window-based project and set
C/C++ Compiler Version = LLVM compiler 1.6 Link-Time Optimization (Compiler Code Generation) = checked on
and build, the object files look to be built but the linker errors with:
ld: warning: in /Users/glenlow/Programs/LTO/build/LTO.build/Debug-iphoneos/LTO.build/Objects-normal/armv7/main.o, file was built for arm which is not the architecture being linked (armv7)
Running file on the object files, which I surmise to be LLVM bytecode, returns this:
./LTO.build/Debug-iphoneos/LTO.build/Objects-normal/armv7/main.o: Compiled PSI (v1) data
Does LTO still strip debug symbols from the resulting executable? Would I be able to symbolicate the executable e.g. if I ship it through the App Store and get a crash report, would I be able to make sense of it?
Cheers, Glen Low Pixelglow Software |