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:
parent
47e8242b29
commit
206d4f5c17
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue