From 87192bd469a3bb335a5f2c7c236d60f07e498bd4 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Mon, 20 Apr 2026 01:17:00 -0700 Subject: [PATCH] Fix compilation database generation when sccache is enabled --- build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.py b/build.py index ff40d0153..29721386e 100755 --- a/build.py +++ b/build.py @@ -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()