Академический Документы
Профессиональный Документы
Культура Документы
12. By default, the ndk-build tool will build an application for all the
valid
targets (viz. ARMv7, AARCH64, MIPS, X86). This will result in compilation
errors for MIPS and X86 targets since the Snapdragon LLVM ARM Compiler
3.8
cannot generate code for these targets. The errors can be avoided if the
user
explicitly passes APP_ABI="armeabi-v7a" or APP_ABI="arm64-v8a" when using
the
Snapdragon LLVM ARM Compiler 3.8. However, in situations where the build
system
cannot be changed, and hence these flags cannot be set, we provide the
following wrappers for MIPS and x86 in order to avoid compilation errors:
mipsel-linux-android-snapdragonclang3.8
mips64el-linux-android-snapdragonclang3.8
x86-snapdragonclang3.8
x86_64-snapdragonclang3.8
These wrappers are exact copies of their Clang versions which are
distributed as part of the Android NDK. These wrappers would simply
invoke
the LLVM compiler that comes with NDK (for MIPS and X86 targets only),
thus
avoiding compilation errors when using the Snapdragon LLVM ARM Compiler
3.8.
Note: The Snapdragon LLVM ARM Compiler 3.8 would be invoked for ARMv7 and
AARCH64 targets.