[Interest] Qt 5 LTO build on OS X 10.9 (and earlier)

Thiago Macieira thiago.macieira at intel.com
Fri Sep 11 13:21:11 CEST 2015


On Friday 11 September 2015 10:24:32 René J.V. Bertin wrote:
> Hello,
> 
> Has anyone tested building Qt 5.5.0 with link-time optimisation (qmake
> -config ltcg) on Mac OS X 10.9 and possibly earlier? I'm getting a failure
> on the bootstrap static lib because llvm-ar is missing from the system
> toolchain (latest Xcode for 10.9).

I've only ever tested LTO builds on Linux. That's where llvm-ar comes from -- 
the *official* clang + LLVM build.

> It seems that the ar command works too though it complains about and ignores
> invalid debug info (which fits in with though doesn't fully explain my
> experience that LTO builds lack debug information in shared libraries).

That depends on whether the .o files were fat or thin.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center




More information about the Interest mailing list