From 13a62a3350551a61859db550fdf1afe65f89a2a7 Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Wed, 4 Feb 2026 12:15:35 +0000 Subject: [PATCH] try build emscripten without flags --- setuptools_rust/build.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/setuptools_rust/build.py b/setuptools_rust/build.py index 0462564b..81f78018 100644 --- a/setuptools_rust/build.py +++ b/setuptools_rust/build.py @@ -212,12 +212,6 @@ def build_extension( # the cdylib, see https://github.com/rust-lang/cargo/issues/10143 rustflags.append("-Ctarget-feature=-crt-static") - elif (rustc_cfgs.get("target_arch"), rustc_cfgs.get("target_os")) == ( - "wasm32", - "emscripten", - ): - rustc_args.extend(["-C", "link-args=-sSIDE_MODULE=2 -sWASM_BIGINT"]) - if use_cargo_crate_type and "--crate-type" not in cargo_args: cargo_args.extend(["--crate-type", "cdylib"])