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

Jean-Daniel Dupas devlists at shadowlab.org
Wed Jun 22 03:53:36 PDT 2011


Le 21 juin 2011 à 21:51, Eric Christopher a écrit :

> 
> 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?
> 

Please, I don't have commit access.

-- Jean-Daniel








More information about the cfe-dev mailing list