0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 17:34:47 -05:00

tools/setup: detect sccache presence and use it to cache rustc targets

This commit is contained in:
Bert Belder 2018-09-25 18:46:26 -07:00
parent 47e8242b29
commit 206d4f5c17
No known key found for this signature in database
GPG key ID: 7A77887B2E2ED461

View file

@ -124,6 +124,11 @@ def generate_gn_args(mode):
tc = "//build_extra/toolchain/win:win_clang_x64"
out += ['custom_toolchain="%s"' % tc, 'host_toolchain="%s"' % tc]
# Look for sccache; if found, set rustc_wrapper.
rustc_wrapper = find_executable("sccache")
if rustc_wrapper:
out += ['rustc_wrapper=%s' % gn_string(rustc_wrapper)]
return out