Can you clarify what you mean by "under the NDK 10"?  The files in
external/clang are used to build clang as part of an Android platform
build, not using the NDK.

external/clang/build.py follows the normal sequence for building
compilers, which is to use an existing compiler to compile the new
source (stage1, sometimes called bootstrapping), followed by using the
bootstrapped compiler to compile the new source (stage2).  This
ensures that the final results are the same no matter which compiler
you had when you started.

It might help if you explain exactly what you are trying to
accomplish.  If you are just making changes to clang, you should
probably just be using the upstream sources and not the Android
platform sources.

On Wed, Jan 18, 2017 at 12:52 PM, Gagou Lou <[email protected]> wrote:
> Hi all,
>
> I'm currently successfully building the clang toolchain under the NDK 10
> under OSX.
> But I'm a bit confused about how your building system is working...
> (kati,ninja,soong, etc)
>
> As Clang rely on CMake, I was hoping to find the Clang configuration command
> used by the NDK build system, but it seems more complicated...
> After digging a bit in the *.mk files, it seems that you have a separated
> build system which don't rely on the CMakefile contained in Clang sources.
>
> I'm currently using ./external/clang/build.py to build Clang toolchain. The
> build process seems to do so many things. I mean, compiling Clang for Linux
> or OSX is as simple as calling cmake with the right parameters followed by
> make/ninja. But in the NDK, Clang compilation looks like so complicated.
>
> So my questions are:
> - How to generate a new Clang toolchain with my own Clang source code ?
> - How the build system works in the NDK 10 ? What are all those compilation
> (stage1, stage2, etc) simply for generating a Clang toolchain?
> - Any hint where to start searching? (any documentation, files, etc)
>
> Thank you for your help,
>
> Gael
>
>
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

--- 
You received this message because you are subscribed to the Google Groups 
"Android Building" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to