about summary refs log tree commit diff
path: root/library/compiler-builtins/ci/update-musl.sh
blob: 637ab13948557b84b75996ef47fb3eabc41df982 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh
# Download musl to a repository for `musl-math-sys`

set -eux

url=https://github.com/kraj/musl.git
ref=c47ad25ea3b484e10326f933e927c0bc8cded3da
dst=crates/musl-math-sys/musl

if ! [ -d "$dst" ]; then
    git clone "$url" "$dst" --single-branch --depth=1000
fi

git -C "$dst" fetch "$url" --depth=1
git -C "$dst" checkout "$ref"