Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit ce0560c

Browse files
committed
Enable MPFR tests on i586
MPFR does build and run correctly without SSE, but requires `force-cross` be enabled.
1 parent 45862e9 commit ce0560c

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

ci/docker/i586-unknown-linux-gnu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ FROM ubuntu:24.04
22

33
RUN apt-get update && \
44
apt-get install -y --no-install-recommends \
5-
gcc-multilib libc6-dev ca-certificates
5+
gcc-multilib m4 make libc6-dev ca-certificates

ci/run.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ case "$target" in
4545
# FIXME(ci): we should be able to enable aarch64 Linux here once GHA
4646
# support rolls out.
4747
x86_64*) extra_flags="$extra_flags --features libm-test/test-multiprecision" ;;
48-
# i686 works fine, i586 does not
4948
i686*) extra_flags="$extra_flags --features libm-test/test-multiprecision" ;;
49+
i586*) extra_flags="$extra_flags --features libm-test/test-multiprecision --features gmp-mpfr-sys/force-cross" ;;
5050
# Apple aarch64 is native
5151
aarch64*apple*) extra_flags="$extra_flags --features libm-test/test-multiprecision" ;;
5252
esac

crates/libm-test/Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ unstable-float = ["libm/unstable-float", "rug?/nightly-float"]
1212

1313
# Generate tests which are random inputs and the outputs are calculated with
1414
# musl libc.
15-
test-multiprecision = ["dep:az", "dep:rug"]
15+
test-multiprecision = ["dep:az", "dep:rug", "dep:gmp-mpfr-sys"]
1616

1717
# Build our own musl for testing and benchmarks
1818
build-musl = ["dep:musl-math-sys"]
@@ -26,6 +26,7 @@ short-benchmarks = []
2626
[dependencies]
2727
anyhow = "1.0.90"
2828
az = { version = "1.2.1", optional = true }
29+
gmp-mpfr-sys = { version = "1.6.4", optional = true, default-features = false, features = ["mpfr"] }
2930
indicatif = { version = "0.17.9", default-features = false }
3031
libm = { path = "../..", features = ["unstable-public-internals"] }
3132
libm-macros = { path = "../libm-macros" }

0 commit comments

Comments
 (0)