Skip to content

Commit 0a55fdf

Browse files
committed
wasm: use target_family instead of target_arch to determine wasm implementation
1 parent 2f1f0e6 commit 0a55fdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
#[cfg_attr(any(target_os = "ios", target_os = "tvos"), path = "ios.rs")]
4545
#[cfg_attr(target_os = "macos", path = "macos.rs")]
4646
#[cfg_attr(target_os = "android", path = "android.rs")]
47-
#[cfg_attr(target_arch = "wasm32", path = "wasm.rs")]
47+
#[cfg_attr(target_family = "wasm", path = "wasm.rs")]
4848
#[cfg_attr(windows, path = "windows.rs")]
4949
#[cfg_attr(
5050
any(

0 commit comments

Comments
 (0)