From 65cade160b060e424ac2a09d99310f2c523670cb Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Wed, 10 Dec 2025 11:49:12 -0800 Subject: [PATCH] Remove `-Z link-native-libraries=no` default We haven't wanted this for a long time --- integration_tests/recipes/orjson/meta.yaml | 2 -- pyodide_build/config.py | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/integration_tests/recipes/orjson/meta.yaml b/integration_tests/recipes/orjson/meta.yaml index 0b00acd8..78947174 100644 --- a/integration_tests/recipes/orjson/meta.yaml +++ b/integration_tests/recipes/orjson/meta.yaml @@ -9,8 +9,6 @@ source: requirements: executable: - rustup -build: - script: export RUSTFLAGS="-Z link-native-libraries=yes" about: home: https://github.com/ijl/orjson PyPI: https://pypi.org/project/orjson diff --git a/pyodide_build/config.py b/pyodide_build/config.py index 0f24b1a6..82935ada 100644 --- a/pyodide_build/config.py +++ b/pyodide_build/config.py @@ -225,7 +225,7 @@ def _get_make_environment_vars(self) -> Mapping[str, str]: "cmake_toolchain_file": str(TOOLS_DIR / "cmake/Modules/Platform/Emscripten.cmake"), "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-2025-02-01",