[cfe-dev] clang/llvm emit call to compiler_rt not present in libSystem (_mulodi4 for instance)

Eric Christopher echristo at apple.com
Tue Jun 21 12:51:36 PDT 2011


On Jun 21, 2011, at 2:04 AM, Jean-Daniel Dupas wrote:

> Hello,
> 
> I see that recently clang started to emit call to new symbols from compiler-rt that are unfortunately not available in libSystem on Mac OS 10.6.
> So, to be able to link such code, the new osx variant of the compiler-rt library is required.
> 

Yep.

> Maybe emitting such code should be made optional to prevent this dependency,

You'd have just crashed. :)

> but in the meantime, I attach a patch that tells clang to build and use libclang_rt.osx.a when possible.

This looks reasonable. Do you need someone to apply this for you?

-eric



More information about the cfe-dev mailing list