Hi Serguey, I'm curious why you need compile libc with llvm. Is this for educational purposes or something else?
Regards, On 25/01/2012, at 11:34, Serguey Kuritsin wrote: > My requirement is to compile to llvm bitcode not to binary. > And I must use llvm 2.8. > > > >> On 2012/01/25 17:22, Serguey Kuritsin wrote: >>> Thanks! >>> >>> I've started to explore src/lib/libc/Makefile. It was too easy to >>> perform: cd src/lib/libc CC=llvm-gcc AR=llvm-ar NM=llvm-nm LD=llvm-ld >>> make >> >>> The rest is bug-fixing in Makefile. >> >> Ah, I've only tried CC=clang myself (which works perfectly with no changes >> to the Makefile), I haven't tried replacing the other tools nor using >> llvm-gcc (which is no longer supported in LLVM anyway so you must be >> using an old version).

