Skip to content

Commit

Permalink
TEMP enable tail calls by default
Browse files Browse the repository at this point in the history
prtest:full
  • Loading branch information
fitzgen committed Jul 25, 2023
1 parent 2c044aa commit 0687b24
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion crates/wasmtime/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ impl Config {

// This is on-by-default in `wasmparser` since it's a stage 4+ proposal
// but it's not implemented in Wasmtime yet so disable it.
ret.features.tail_call = false;
ret.wasm_tail_call(true); // TEMP FITZGEN

ret
}
Expand Down Expand Up @@ -1598,6 +1598,12 @@ impl Config {
let host = target_lexicon::Triple::host();
let target = self.compiler_config.target.as_ref().unwrap_or(&host);

// TEMP FITZGEN
if target.architecture == Architecture::S390x {
self.wasm_tail_call(false);
}
let target = self.compiler_config.target.as_ref().unwrap_or(&host);

// On supported targets, we enable stack probing by default.
// This is required on Windows because of the way Windows
// commits its stacks, but it's also a good idea on other
Expand Down

0 comments on commit 0687b24

Please sign in to comment.