diff --git a/build.py b/build.py index 802a6954f..e34ec6667 100755 --- a/build.py +++ b/build.py @@ -62,6 +62,8 @@ if shutil.which("sccache") is not None: os.environ["RUSTC_WRAPPER"] = "sccache" os.environ["NDK_CCACHE"] = "sccache" os.environ["CARGO_INCREMENTAL"] = "0" +if shutil.which("ccache") is not None: + os.environ["NDK_CCACHE"] = "ccache" cpu_count = multiprocessing.cpu_count() os_name = platform.system().lower()