From 48299cdd7fe161e2efe9cc07527ced59cdac7399 Mon Sep 17 00:00:00 2001 From: Jeong YunWon Date: Sun, 28 Jul 2024 11:52:32 +0900 Subject: [PATCH] Add faulthandler to wasm32 --- stdlib/src/lib.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stdlib/src/lib.rs b/stdlib/src/lib.rs index 06bcbdd681..185b3d8ced 100644 --- a/stdlib/src/lib.rs +++ b/stdlib/src/lib.rs @@ -43,7 +43,6 @@ mod syslog; mod unicodedata; mod zlib; -#[cfg(not(target_arch = "wasm32"))] mod faulthandler; #[cfg(any(unix, target_os = "wasi"))] mod fcntl; @@ -109,6 +108,7 @@ pub fn get_module_inits() -> impl Iterator, StdlibInit "_contextvars" => contextvars::make_module, "_csv" => csv::make_module, "_dis" => dis::make_module, + "faulthandler" => faulthandler::make_module, "gc" => gc::make_module, "_hashlib" => hashlib::make_module, "_sha1" => sha1::make_module, @@ -140,7 +140,6 @@ pub fn get_module_inits() -> impl Iterator, StdlibInit { "_multiprocessing" => multiprocessing::make_module, "_socket" => socket::make_module, - "faulthandler" => faulthandler::make_module, } #[cfg(not(any(target_os = "android", target_arch = "wasm32")))] {