From a80210d26ae434103b4e6d5ec8ef1ff9848886e1 Mon Sep 17 00:00:00 2001 From: Hood Chatham Date: Thu, 14 Jul 2022 16:36:33 +0300 Subject: [PATCH] Set crt_static_respected to true for the Emscripten target --- compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs b/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs index c7e7d22108656..76d4a397473c7 100644 --- a/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs +++ b/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs @@ -19,6 +19,8 @@ pub fn target() -> Target { pre_link_args, post_link_args, relocation_model: RelocModel::Pic, + crt_static_respected: true, + crt_static_default: true, panic_strategy: PanicStrategy::Unwind, no_default_libraries: false, families: cvs!["unix", "wasm"],