Android 16 build / soong / empty compilation database

292 views
Skip to first unread message

Geoffroy Jabouley

unread,
Oct 16, 2025, 11:03:59 AMOct 16
to Android Building
Hello

as part of our Android build setup, we generate a compilation database that is used afterward by a static analysis tool.

We follow this guideline to enable compdb generation using soong:  https://android.googlesource.com/platform/build/soong/+/refs/heads/main/docs/compdb.md

For Android 12 / 13 / 14 / 15, this is working fine and file is properly generated.
For Android 16, file is generated but is empty.

Could it be a regression for this specific usage? I was not able to find any relevant info / bug in https://android.googlesource.com/platform/build/soong/ resources...

Thanks a lot for any assistance
Regards

Shunyun Deng

unread,
Oct 16, 2025, 11:37:50 PMOct 16
to Android Building
you can apply this patch: 
https://android-review.googlesource.com/c/platform/build/soong/+/3558028

We have also encountered this issue. The modification has been merged into the main branch, but it should not have been merged into the release branch.

Geoffroy J

unread,
Oct 20, 2025, 1:00:31 PMOct 20
to android-...@googlegroups.com
Thanks a lot, this actually fixed our build issue!

--
--
You received this message because you are subscribed to the "Android Building" mailing list.
To post to this group, send email to android-...@googlegroups.com
To unsubscribe from this group, send email to
android-buildi...@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 a topic in the Google Groups "Android Building" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/android-building/B6Ncdyeto4A/unsubscribe.
To unsubscribe from this group and all its topics, send an email to android-buildi...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/android-building/6c9ea7ec-032d-40c9-ac01-8e5846b77e44n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages