commit a587dd08f86bf8524b9dc405044b9b48a735db18 (tree)
parent ce65ca434584783c30c80b611e02428a26f65512
Author: Jakub Konka <kubkon@jakubkonka.com>
Date: Mon, 25 Oct 2021 01:27:05 +0200
std: disable big.rational setFloat targeting wasm32
until we fix the underlying issue resulting in `error.TargetTooSmall`
error.
Diffstat:
1 file changed, 5 insertions(+), 0 deletions(-)
diff --git a/lib/std/math/big/rational.zig b/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();