From cf10912de251603063b90838c22466786f5b3da6 Mon Sep 17 00:00:00 2001 From: Jerry James Date: Wed, 2 Dec 2020 16:29:47 -0700 Subject: [PATCH] Skip 128-bit tests on 32-bit architectures. --- ocaml-stdint.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ocaml-stdint.spec b/ocaml-stdint.spec index 04013cc..fe70a84 100644 --- a/ocaml-stdint.spec +++ b/ocaml-stdint.spec @@ -55,6 +55,12 @@ Documentation for %{name}. %prep %autosetup -n %{srcname}-%{version} -p1 +# Skip 128-bit tests on 32-bit platforms. The necessary functions are not +# fully implemented. +%if 0%{?__isa_bits} == 32 +sed -i '/"Int128.*"/d;/"Uint128.*"/d' tests/stdint_test.ml +%endif + %build dune build %{?_smp_mflags} --display=verbose dune build %{?_smp_mflags} @doc