Hi I install NDK r10e, and run make-standalone-toolchain will following command:
./make-standalone-toolchain.sh --ndk-dir=$NDK --platform=android-21 --arch=arm64 --install-dir=/home/alvin/snapdragon-llvm-arm64 --toolchain=aarch64-linux-android-4.9 --llvm-version=Snapdragon_LLVM_for_Android_3.6 --system=linux-x86_64
After made standalone, snapdragon-llvm still need "--sysroot=" option assigned, while this is not happening in gcc/llvm which come with NDK r10e. I checked that sysroot is copied to /home/alvin/snapdragon-llvm-arm64/sysroot correctly.
Is it expected?
Thanks for your question.
The Snapdragon LLVM ARM 3.6 release does not support the automatic sysroot detection. The reason NDK llvm supports it is because Google has modified the LLVM 3.6 in NDK to automatically detect sysroots. We plan to include this feature in our next release (3.7) expected in the next week or 2.