Android 16 build / soong / empty compilation database

33 views
Skip to first unread message

Geoffroy Jabouley

unread,
Oct 16, 2025, 11:03:59 AM (19 hours ago) Oct 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 PM (6 hours ago) Oct 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.
Reply all
Reply to author
Forward
0 new messages