[LLVMdev] regarding compiling clang for different platform
Tim Northover
t.p.northover at gmail.com
Thu Jul 18 00:50:33 PDT 2013
Hi Venkata,
> ./configure --build=arm-linux-androideabi --host=arm-linux-androideabi
> --target=arm-linux-androideabi --with-float=hard --with-fpu=neon
> --enable-targets=arm --enable-optimized --enable-assertions
Renato's suggestion is a good one, but I suspect the immediate problem
here is that this configure line is for building *on* an ARM board.
You're probably executing this on your x86 desktop, which means the
--build option wouldn't work. Also, unless you actually want to run
the resulting Clang on Android (rather than just use it to compile for
Android), the --host isn't needed either.
But then you'll hit the fun of trying to get Clang to find Android's
headers and libraries, which is where Renato's suggestion becomes even
better. We're not really Android experts here (mostly).
Cheers.
Tim.
More information about the llvm-dev
mailing list