From a150ee23170d3ab741d67fbc78011e74a4060e76 Mon Sep 17 00:00:00 2001 From: RustyYato Date: Sat, 25 May 2024 16:03:24 -0700 Subject: [PATCH] switch from target_family to target_arch --- library/core/src/num/f32.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/library/core/src/num/f32.rs b/library/core/src/num/f32.rs index d14d66f9cb579..7551a50949201 100644 --- a/library/core/src/num/f32.rs +++ b/library/core/src/num/f32.rs @@ -1022,7 +1022,8 @@ impl f32 { target_arch = "aarch64", all(any(target_arch="riscv32", target_arch= "riscv64"), target_feature="d"), all(target_arch = "arm", target_feature="vfp2"), - target_family = "wasm", + target_arch = "wasm32", + target_arch = "wasm64", ))] { // whitelist the faster implementation to targets that have known good 64-bit float // implementations. Falling back to the branchy code on targets that don't have