Use ccache for C code

This commit is contained in:
vvb2060 2023-09-27 22:48:21 +08:00 committed by John Wu
parent 09bb2fe8dc
commit beaf636415

View File

@ -62,6 +62,8 @@ if shutil.which("sccache") is not None:
os.environ["RUSTC_WRAPPER"] = "sccache" os.environ["RUSTC_WRAPPER"] = "sccache"
os.environ["NDK_CCACHE"] = "sccache" os.environ["NDK_CCACHE"] = "sccache"
os.environ["CARGO_INCREMENTAL"] = "0" os.environ["CARGO_INCREMENTAL"] = "0"
if shutil.which("ccache") is not None:
os.environ["NDK_CCACHE"] = "ccache"
cpu_count = multiprocessing.cpu_count() cpu_count = multiprocessing.cpu_count()
os_name = platform.system().lower() os_name = platform.system().lower()