summaryrefslogtreecommitdiff
path: root/tools/setup.py
diff options
context:
space:
mode:
authorChristian Moritz <chrmoritz@gmail.com>2019-05-30 00:34:48 +0200
committerRyan Dahl <ry@tinyclouds.org>2019-05-30 13:18:30 -0400
commit0e780e894854cada1244aa3f465c226593187edc (patch)
tree2a047f721e801f3c5c607196c4e997aca3d5e400 /tools/setup.py
parent15dadf812c95c3dd2b93b1ba41ef488baeeac0c1 (diff)
tools/setup: don't download sccache if --no-binary-download is passed
Diffstat (limited to 'tools/setup.py')
-rwxr-xr-xtools/setup.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/setup.py b/tools/setup.py
index 9a4b443dd..6060ce8f1 100755
--- a/tools/setup.py
+++ b/tools/setup.py
@@ -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")