Skip to content

Commit 155f569

Browse files
committed
Update cranelift to the upcoming release-3.0.0 branch
1 parent 3df425e commit 155f569

File tree

3 files changed

+21
-21
lines changed

3 files changed

+21
-21
lines changed

Cargo.lock

Lines changed: 13 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ crate-type = ["dylib"]
1515

1616
[dependencies]
1717
# These have to be in sync with each other
18-
cranelift-codegen = { version = "0.90", git = "https://github.com/bytecodealliance/wasmtime.git", features = ["unwind", "all-arch"] }
19-
cranelift-frontend = { version = "0.90", git = "https://github.com/bytecodealliance/wasmtime.git" }
20-
cranelift-module = { version = "0.90", git = "https://github.com/bytecodealliance/wasmtime.git" }
21-
cranelift-native = { version = "0.90", git = "https://github.com/bytecodealliance/wasmtime.git" }
22-
cranelift-jit = { version = "0.90", git = "https://github.com/bytecodealliance/wasmtime.git", optional = true }
23-
cranelift-object = { version = "0.90", git = "https://github.com/bytecodealliance/wasmtime.git" }
18+
cranelift-codegen = { version = "0.90", git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-3.0.0", features = ["unwind", "all-arch"] }
19+
cranelift-frontend = { version = "0.90", git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-3.0.0" }
20+
cranelift-module = { version = "0.90", git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-3.0.0" }
21+
cranelift-native = { version = "0.90", git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-3.0.0" }
22+
cranelift-jit = { version = "0.90", git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-3.0.0", optional = true }
23+
cranelift-object = { version = "0.90", git = "https://github.com/bytecodealliance/wasmtime.git", branch = "release-3.0.0" }
2424
target-lexicon = "0.12.0"
2525
gimli = { version = "0.26.0", default-features = false, features = ["write"]}
2626
object = { version = "0.29.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }

src/driver/jit.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ pub(crate) fn run_jit(tcx: TyCtxt<'_>, backend_config: BackendConfig) -> ! {
159159

160160
tcx.sess.abort_if_errors();
161161

162-
jit_module.finalize_definitions();
162+
jit_module.finalize_definitions().unwrap();
163163
unsafe { cx.unwind_context.register_jit(&jit_module) };
164164

165165
println!(
@@ -278,7 +278,7 @@ fn jit_fn(instance_ptr: *const Instance<'static>, trampoline_ptr: *const u8) ->
278278
});
279279

280280
assert!(cx.global_asm.is_empty());
281-
jit_module.finalize_definitions();
281+
jit_module.finalize_definitions().unwrap();
282282
unsafe { cx.unwind_context.register_jit(&jit_module) };
283283
jit_module.get_finalized_function(func_id)
284284
})

0 commit comments

Comments
 (0)