authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-10-25 01:27:05+02:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2021-10-25 01:27:05+02:00
loga587dd08f86bf8524b9dc405044b9b48a735db18
treeb182fb381d5d26c16f03de4af4fbe90a9839f906
parentce65ca434584783c30c80b611e02428a26f65512

std: disable big.rational setFloat targeting wasm32

until we fix the underlying issue resulting in `error.TargetTooSmall` error.

1 files changed, 5 insertions(+), 0 deletions(-)

lib/std/math/big/rational.zig+5
...@@ -4,6 +4,8 @@ const math = std.math;...@@ -4,6 +4,8 @@ const math = std.math;
4const mem = std.mem;4const mem = std.mem;
5const testing = std.testing;5const testing = std.testing;
6const Allocator = mem.Allocator;6const Allocator = mem.Allocator;
7const builtin = @import("builtin");
8const native_arch = builtin.target.cpu.arch;
79
8const Limb = std.math.big.Limb;10const Limb = std.math.big.Limb;
9const DoubleLimb = std.math.big.DoubleLimb;11const DoubleLimb = std.math.big.DoubleLimb;
...@@ -537,6 +539,9 @@ test "big.rational set" {...@@ -537,6 +539,9 @@ test "big.rational set" {
537}539}
538540
539test "big.rational setFloat" {541test "big.rational setFloat" {
542 // TODO https://github.com/ziglang/zig/issues/10026
543 if (native_arch == .wasm32) return error.SkipZigTest;
544
540 var a = try Rational.init(testing.allocator);545 var a = try Rational.init(testing.allocator);
541 defer a.deinit();546 defer a.deinit();
542547