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.
Maybe emitting such code should be made optional to prevent this dependency, but in the meantime, I attach a patch that tells clang to build and use libclang_rt.osx.a when possible.
-- Jean-Daniel
libosx.patch (4.24 KB)
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
Please, I don't have commit access.
-- Jean-Daniel
This looks reasonable. Do you need someone to apply this for you?
Please, I don't have commit access.
Done here:
[issola:llvm/tools/clang] echristo% svn ci
Sending lib/Driver/ToolChains.cpp
Sending lib/Driver/ToolChains.h
Sending runtime/compiler-rt/Makefile
Transmitting file data ...
Committed revision 133624.
Thanks for the patch!
-eric