mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2025-04-13 14:11:04 +00:00
Get prebuilt sccache
This commit is contained in:
parent
3058ea5564
commit
c9ac2dd848
1 changed files with 3 additions and 8 deletions
|
@ -31,14 +31,9 @@ fi
|
||||||
|
|
||||||
# sccache (Windows)
|
# sccache (Windows)
|
||||||
if [ "$ARCH" = Windows ]; then
|
if [ "$ARCH" = Windows ]; then
|
||||||
export PATH="$PATH:$HOME/.cargo/bin"
|
sccache_url="https://github.com/mozilla/sccache/releases/download/0.2.8/sccache-0.2.8-x86_64-pc-windows-msvc.tar.gz"
|
||||||
if ! which cargo >/dev/null 2>&1; then
|
mkdir -p ~/.cargo/bin
|
||||||
curl -OJ https://win.rustup.rs/
|
curl -L "$sccache_url" | tar xzf - --strip=1 -C ~/.cargo/bin
|
||||||
./rustup-init.exe -y -v --no-modify-path
|
|
||||||
fi
|
|
||||||
if ! which sccache >/dev/null 2>&1; then
|
|
||||||
cargo install --force sccache
|
|
||||||
fi
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# gn
|
# gn
|
||||||
|
|
Loading…
Add table
Reference in a new issue