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

Commit cfacd88

Browse files
committed
Enable MPFR on i586
1 parent 7419a5e commit cfacd88

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ case "$target" in
4747
x86_64*) extra_flags="$extra_flags --features libm-test/test-multiprecision" ;;
4848
# i686 works fine, i586 does not
4949
i686*) extra_flags="$extra_flags --features libm-test/test-multiprecision" ;;
50+
i586*) extra_flags="$extra_flags --features libm-test/test-multiprecision --features libm-test/force-cross" ;;
5051
# Apple aarch64 is native
5152
aarch64*apple*) extra_flags="$extra_flags --features libm-test/test-multiprecision" ;;
5253
esac

crates/libm-test/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,23 @@ 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"]
1919

2020
# Enable report generation without bringing in more dependencies by default
2121
benchmarking-reports = ["criterion/plotters", "criterion/html_reports"]
2222

23+
force-cross = ["gmp-mpfr-sys/force-cross"]
24+
2325
# Run with a reduced set of benchmarks, such as for CI
2426
short-benchmarks = []
2527

2628
[dependencies]
2729
anyhow = "1.0.90"
2830
az = { version = "1.2.1", optional = true }
31+
gmp-mpfr-sys = { version = "1.6.4", optional = true, default-features = false, features = ["mpfr"] }
2932
indicatif = { version = "0.17.9", default-features = false }
3033
libm = { path = "../..", features = ["unstable-public-internals"] }
3134
libm-macros = { path = "../libm-macros" }

0 commit comments

Comments
 (0)