tools/setup: don't download sccache if --no-binary-download is passed

This commit is contained in:
Christian Moritz 2019-05-30 00:34:48 +02:00 committed by Ryan Dahl
parent 15dadf812c
commit 0e780e8948
2 changed files with 11 additions and 11 deletions

View file

@ -31,6 +31,7 @@ def main():
third_party.download_clang_format()
third_party.download_clang()
third_party.maybe_download_sysroot()
prebuilt.load_sccache()
write_lastchange()
@ -125,7 +126,7 @@ def generate_gn_args(mode):
if "DENO_BUILD_ARGS" in os.environ:
out += os.environ["DENO_BUILD_ARGS"].split()
cacher = prebuilt.load_sccache()
cacher = os.path.join(root_path, prebuilt.get_platform_path("sccache"))
if not os.path.exists(cacher):
cacher = find_executable("sccache") or find_executable("ccache")