The binary clang/clang.exe is already in NDK source code dir below:
https://android.googlesource.com/platform/prebuilts/clang/host/darwin-x86
https://android.googlesource.com/platform/prebuilts/clang/host/linux-x86
https://android.googlesource.com/platform/prebuilts/clang/host/windows-x86
The binary clang/clang.exe is just copy from NDK source code dir. Not build from source code.
android-ndk-r13\toolchains\ llvm\prebuilt\windows-x86_64\ bin\clang.exe
android-ndk-r13\toolchains\llvm\prebuilt\linux-x86_64\bin\clang
https://android.googlesource.com/platform/ndk.git/+/master/build/tools/build-llvm.py
https://android.googlesource.com/platform/ndk.git/+/master/build/tools/#II_Host-toolchains
Thanks for answer again. I checked it, but find out it's saying how to build gcc toolchains from source use the build-gcc.sh. I'm sorry to say there is nothing about llvm toolchains which it's already prebuilt binaries placed in below:
And there is nothing I can find about how to build it with Google searching or in it's WIKI.
It looks like I need to delete some old docs. The doc you're looking for is https://android.googlesource.com/platform/ndk/+/master/docs/Toolchains.md
Thank you very much! With this link and some test (most times one change need a total rebuild) I finally make it works!
The work also need this:
https://android.googlesource.com/platform/external/clang/+/dev/ToolchainPrebuilts.md
Thanks Again!
https://groups.google.com/forum/#!topic/android-ndk/OrCXmCNFark