Disable wasm32 features on emscripten
These are only supported by the native wasm32 backend.
This commit is contained in:
parent
c14bc575d6
commit
8407612a8d
@ -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,
|
||||
_ => &[],
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user