Hi everyone, I tried to compile the Clang/LLVM toolchain from AOSP source a while ago and it looked like to be a very complex system (see my older post https://groups.google.com/forum/#!forum/android-building).
Now, I'm trying (again) to build Clang/LLVM toolchain... First, I saw this README <https://android.googlesource.com/platform/ndk/+/master/build/tools/> that mentions under "Building the toolchains" to execute "$NDK/build/tools/gen-platforms.sh --minimal". The minimal flags does not exist. Can someone confirm that this documentation is outdated? Then, I tried to follow another solution <https://hardenedlinux.github.io/toolchains/2016/04/01/How_to_build_Clang_toolchains_for_Android.html>. Despite the fact that it requires a crazy amount of dependencies, it seems to work. As my goal was to build a custom Clang (containing my own passes), I tried to merge it into external/llvm and external/clang... As if it were not complicated enough, the Clang/LLVM sources in the AOSP do not use CMake but use *.bp files (soong build system?) spread in every directory... I also ended up reading how the synching with official clang/llvm <https://android.googlesource.com/platform/external/clang/+/master/ToolchainPrebuilts.md> version is made. Questions: - Do we really need to use the "repo" tool and all those dependencies to only build the Clang toolchain? Any other "simple" solution (maybe CMake based)? - Where do the *.bp files come from? Do I need to update them manually after merging my Clang/LLVM version into external/clang and external/llvm? Or are they generated? - What I'm trying to achieve is nearly the same as what Google developers do when they incorporate an upstream version of Clang/LLVM. Does someone who has already done that could describe the steps needed? Many thanks for your help ! -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to android-building@googlegroups.com To unsubscribe from this group, send email to android-building+unsubscr...@googlegroups.com 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 android-building+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.