From ddb39cd7f1c42328220d2afd94592bbd86e8ae10 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Wed, 16 Oct 2024 17:39:35 +0200 Subject: [PATCH] Remove `-Zlink-native-libraries=no` from `RUSTFLAGS` The upstream bug that made this necessary seems to have been resolved: https://github.com/emscripten-core/emscripten/issues/16680 --- pyodide_build/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyodide_build/config.py b/pyodide_build/config.py index b4b71765..9aa5be2b 100644 --- a/pyodide_build/config.py +++ b/pyodide_build/config.py @@ -195,7 +195,7 @@ def to_env(self) -> dict[str, str]: "pyo3_config_file": str(TOOLS_DIR / "pyo3_config.ini"), "meson_cross_file": str(TOOLS_DIR / "emscripten.meson.cross"), # Rust-specific configuration - "rustflags": "-C link-arg=-sSIDE_MODULE=2 -C link-arg=-sWASM_BIGINT -Z link-native-libraries=no", + "rustflags": "-C link-arg=-sSIDE_MODULE=2 -C link-arg=-sWASM_BIGINT", "cargo_build_target": "wasm32-unknown-emscripten", "cargo_target_wasm32_unknown_emscripten_linker": "emcc", "rust_toolchain": "nightly-2024-01-29",