Skip to content

Commit 81441ae

Browse files
committed
Replace the musl submodule with a download script
1 parent da8433d commit 81441ae

File tree

5 files changed

+24
-5
lines changed

5 files changed

+24
-5
lines changed

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,7 @@ iai-home
1414
*.bk
1515
*.rs.bk
1616
.#*
17+
18+
# Manually managed
19+
crates/musl-math-sys/musl
20+

.gitmodules

Lines changed: 0 additions & 4 deletions
This file was deleted.

ci/run.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ CARGO_PROFILE_RELEASE_LTO=true run_intrinsics_test --release
9393

9494
# Test libm
9595

96+
# Prepare
97+
./ci/update-musl
98+
9699
# Make sure a simple build works
97100
cargo check -p libm --no-default-features --target "$target"
98101

ci/update-musl.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/sh
2+
3+
set -eux
4+
5+
url=git://git.musl-libc.org/musl
6+
ref=c47ad25ea3b484e10326f933e927c0bc8cded3da
7+
dst=crates/musl-math-sys/musl
8+
9+
if ! [ -d "$dst" ]; then
10+
git clone "$url" "$dst" --single-branch --depth=1000
11+
fi
12+
13+
git -C "$dst" fetch "$url" --depth=1
14+
git -C "$dst" checkout "$ref"
15+
16+
17+

crates/musl-math-sys/musl

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)