From c9ac2dd848c18c07d6159da75a0f2bd9c3b5a393 Mon Sep 17 00:00:00 2001 From: klzgrad Date: Tue, 2 Apr 2019 22:02:27 +0800 Subject: [PATCH] Get prebuilt sccache --- src/get-clang.sh | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/src/get-clang.sh b/src/get-clang.sh index 443377c611..d5ba13b9ca 100755 --- a/src/get-clang.sh +++ b/src/get-clang.sh @@ -31,14 +31,9 @@ fi # sccache (Windows) if [ "$ARCH" = Windows ]; then - export PATH="$PATH:$HOME/.cargo/bin" - if ! which cargo >/dev/null 2>&1; then - curl -OJ https://win.rustup.rs/ - ./rustup-init.exe -y -v --no-modify-path - fi - if ! which sccache >/dev/null 2>&1; then - cargo install --force sccache - fi + sccache_url="https://github.com/mozilla/sccache/releases/download/0.2.8/sccache-0.2.8-x86_64-pc-windows-msvc.tar.gz" + mkdir -p ~/.cargo/bin + curl -L "$sccache_url" | tar xzf - --strip=1 -C ~/.cargo/bin fi # gn