mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-11-24 18:45:28 +00:00
Use ccache for C code
This commit is contained in:
parent
09bb2fe8dc
commit
beaf636415
2
build.py
2
build.py
@ -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()
|
||||||
|
Loading…
Reference in New Issue
Block a user