Build Android 15 with Android T clang toolchain

149 views
Skip to first unread message

chandra sekhar seereddi

unread,
Mar 22, 2025, 12:48:57 PMMar 22
to android-llvm
Hi,
Is it possible to build AOSP with the older toolchains. I changed the necessary entries in global.go and got the older toolchain to prebuilts. Let me know where and all places I need to modify to the get the build done

Pirama Arumuga Nainar

unread,
Mar 24, 2025, 1:33:42 PMMar 24
to chandra sekhar seereddi, android-llvm
Typically, modifying global.go should be enough to change the toolchain version.  In some cases, the bindgenClangVersion variable in rust/bindgen.go also needs to be updated.

That said, I don't think it's feasible to build Android 15 with an older toolchain.  There were two large scale changes - to use libc++ from the toolchain instead of external/libcxx.  The default C++ version also switched to C++20.  You may undo a large number of AOSP changes to make it build with an older toolchain.

On Sat, Mar 22, 2025 at 9:48 AM chandra sekhar seereddi <sekha...@gmail.com> wrote:
Hi,
Is it possible to build AOSP with the older toolchains. I changed the necessary entries in global.go and got the older toolchain to prebuilts. Let me know where and all places I need to modify to the get the build done

--
You received this message because you are subscribed to the Google Groups "android-llvm" group.
To unsubscribe from this group and stop receiving emails from it, send an email to android-llvm...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/android-llvm/d7ff0fb6-be43-4d00-84e3-197df734a8ean%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages