Compiling LLVM libraries for Android


I’m compiling LLVM libraries for android platform using android nk r4 from crystax that supports c++ and rtti libs.
I’m facing the problem that there gcc compiler doesn’t support __clear_cache function of Memory.cpp (line 699) for the librarie LLVMSystem. Is there a way to bypass this limitation without puts a comment on this line?

Jérôme Gorin

The function must be ported to Android.

See how at

You may need to embed the code inside an #if defined(__ANDROID__)