From 97cd27ab1dea10b5f58441f10e9b0771fd827eb8 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Tue, 16 Nov 2021 13:10:35 -0800 Subject: [PATCH] Add emscripten to the "wasm" family of targets --- compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs b/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs index 86b1a755233..69a404ec564 100644 --- a/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs +++ b/compiler/rustc_target/src/spec/wasm32_unknown_emscripten.rs @@ -37,7 +37,7 @@ pub fn target() -> Target { is_like_emscripten: true, panic_strategy: PanicStrategy::Unwind, post_link_args, - families: vec!["unix".to_string()], + families: vec!["unix".to_string(), "wasm".to_string()], ..options }; Target {