Skip to content

Commit

Permalink
Match wasm32-unknown-unknown ABI with clang
Browse files Browse the repository at this point in the history
  • Loading branch information
temeddix committed Oct 26, 2023
1 parent 6f65201 commit 5d14b24
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions compiler/rustc_target/src/spec/wasm32_unknown_unknown.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,6 @@ pub fn target() -> Target {
let mut options = wasm_base::options();
options.os = "unknown".into();

// This is a default for backwards-compatibility with the original
// definition of this target oh-so-long-ago. Once the "wasm" ABI is
// stable and the wasm-bindgen project has switched to using it then there's
// no need for this and it can be removed.
//
// Currently this is the reason that this target's ABI is mismatched with
// clang's ABI. This means that, in the limit, you can't merge C and Rust
// code on this target due to this ABI mismatch.
options.default_adjusted_cabi = Some(Abi::Wasm);

options.add_pre_link_args(
LinkerFlavor::WasmLld(Cc::No),
&[
Expand Down

0 comments on commit 5d14b24

Please sign in to comment.