Commit a587dd08f8

Jakub Konka <kubkon@jakubkonka.com>
2021-10-25 01:27:05
std: disable big.rational setFloat targeting wasm32
until we fix the underlying issue resulting in `error.TargetTooSmall` error.
1 parent ce65ca4
Changed files (1)
lib
std
math
lib/std/math/big/rational.zig
@@ -4,6 +4,8 @@ const math = std.math;
 const mem = std.mem;
 const testing = std.testing;
 const Allocator = mem.Allocator;
+const builtin = @import("builtin");
+const native_arch = builtin.target.cpu.arch;
 
 const Limb = std.math.big.Limb;
 const DoubleLimb = std.math.big.DoubleLimb;
@@ -537,6 +539,9 @@ test "big.rational set" {
 }
 
 test "big.rational setFloat" {
+    // TODO https://github.com/ziglang/zig/issues/10026
+    if (native_arch == .wasm32) return error.SkipZigTest;
+
     var a = try Rational.init(testing.allocator);
     defer a.deinit();