On Tue, Jul 16, 2024 at 3:06 AM Leo Yan <leo.yan@xxxxxxx> wrote:
Thanks for correcting. Now I even can build successfully with the Clang
from Android NDK with an additional flag 'NO_DEMANGLE=1'. Though we still
need to disable several modules for passing the building, but we are on the
right way.
Would you like to continue a formal fixing or you want me to follow up?
+clang-built-linux
If you could follow up it would be great!
I'm not sure how we detect
in the build that we're using clang, I suspect there is an approach in
a different kernel Makefile/Build that already tackles this but my
quick searching didn't yield anything - perhaps the change would be
better suited to the location the CROSS_COMPILE prefix is added to
gcc.
The only thing the change to Makefile.config is doing is
injecting the --target option. I'm not sure anything more is not
working for me on my laptop with this approach compared to cross
compiling with gcc, but as you say going in the right direction is
worth it anyway.
Thanks,
Ian