Skip to content

Commit

Permalink
Update to Cranelift 0.114
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Nov 7, 2024
1 parent b5966e4 commit 6ead850
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 48 deletions.
91 changes: 49 additions & 42 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ crate-type = ["dylib"]

[dependencies]
# These have to be in sync with each other
cranelift-codegen = { version = "0.113.0", default-features = false, features = ["std", "unwind", "all-native-arch"] }
cranelift-frontend = { version = "0.113.0" }
cranelift-module = { version = "0.113.0" }
cranelift-native = { version = "0.113.0" }
cranelift-jit = { version = "0.113.0", optional = true }
cranelift-object = { version = "0.113.0" }
cranelift-codegen = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-27.0.0", version = "0.114.0", default-features = false, features = ["std", "unwind", "all-native-arch"] }
cranelift-frontend = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-27.0.0", version = "0.114.0" }
cranelift-module = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-27.0.0", version = "0.114.0" }
cranelift-native = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-27.0.0", version = "0.114.0" }
cranelift-jit = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-27.0.0", version = "0.114.0", optional = true }
cranelift-object = { git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-27.0.0", version = "0.114.0" }
target-lexicon = "0.12.0"
gimli = { version = "0.31", default-features = false, features = ["write"] }
object = { version = "0.36", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }
Expand Down
10 changes: 10 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,16 @@ fn build_isa(sess: &Session, backend_config: &BackendConfig) -> Arc<dyn TargetIs
}
}

if let target_lexicon::OperatingSystem::Windows = target_triple.operating_system {
// FIXME remove dependency on this from the Rust ABI. cc bytecodealliance/wasmtime#9510
flags_builder.enable("enable_multi_ret_implicit_sret").unwrap();
}

if let target_lexicon::Architecture::S390x = target_triple.architecture {
// FIXME remove dependency on this from the Rust ABI. cc bytecodealliance/wasmtime#9510
flags_builder.enable("enable_multi_ret_implicit_sret").unwrap();
}

if let target_lexicon::Architecture::Aarch64(_)
| target_lexicon::Architecture::Riscv64(_)
| target_lexicon::Architecture::X86_64 = target_triple.architecture
Expand Down

0 comments on commit 6ead850

Please sign in to comment.