Fix compilation database generation when sccache is enabled

This commit is contained in:
topjohnwu
2026-04-20 01:17:00 -07:00
parent 36511c6d79
commit 87192bd469

View File

@@ -431,6 +431,10 @@ def build_all():
def gen_ide():
ensure_cargo()
# Do not dump compilation database with ccache
if "NDK_CCACHE" in os.environ:
os.environ.pop("NDK_CCACHE")
# Dump flags for both native and app
dump_flags_native()
dump_flags_app()