Disable wasm32 features on emscripten

These are only supported by the native wasm32 backend.
This commit is contained in:
Nikita Popov 2018-11-08 16:22:20 +01:00
parent c14bc575d6
commit 8407612a8d
1 changed files with 2 additions and 1 deletions

View File

@ -243,7 +243,8 @@ pub fn target_feature_whitelist(sess: &Session)
"hexagon" => HEXAGON_WHITELIST,
"mips" | "mips64" => MIPS_WHITELIST,
"powerpc" | "powerpc64" => POWERPC_WHITELIST,
"wasm32" => WASM_WHITELIST,
// wasm32 on emscripten does not support these target features
"wasm32" if !sess.target.target.options.is_like_emscripten => WASM_WHITELIST,
_ => &[],
}
}