Skip to content

Commit 3ccf12a

Browse files
committed
Update Cranelift to 0.82.0
1 parent 401b034 commit 3ccf12a

File tree

3 files changed

+30
-27
lines changed

3 files changed

+30
-27
lines changed

Cargo.lock

Lines changed: 20 additions & 20 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
@@ -8,12 +8,12 @@ crate-type = ["dylib"]
88

99
[dependencies]
1010
# These have to be in sync with each other
11-
cranelift-codegen = { version = "0.81.0", features = ["unwind", "all-arch"] }
12-
cranelift-frontend = "0.81.0"
13-
cranelift-module = "0.81.0"
14-
cranelift-native = "0.81.0"
15-
cranelift-jit = { version = "0.81.0", optional = true }
16-
cranelift-object = "0.81.0"
11+
cranelift-codegen = { version = "0.82.0", features = ["unwind", "all-arch"] }
12+
cranelift-frontend = "0.82.0"
13+
cranelift-module = "0.82.0"
14+
cranelift-native = "0.82.0"
15+
cranelift-jit = { version = "0.82.0", optional = true }
16+
cranelift-object = "0.82.0"
1717
target-lexicon = "0.12.0"
1818
gimli = { version = "0.26.0", default-features = false, features = ["write"]}
1919
object = { version = "0.27.0", default-features = false, features = ["std", "read_core", "write", "archive", "coff", "elf", "macho", "pe"] }

src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,10 @@ fn build_isa(sess: &Session, backend_config: &BackendConfig) -> Box<dyn isa::Tar
301301
}
302302
};
303303

304-
isa_builder.finish(flags)
304+
match isa_builder.finish(flags) {
305+
Ok(target_isa) => target_isa,
306+
Err(err) => sess.fatal(&format!("failed to build TargetIsa: {}", err)),
307+
}
305308
}
306309

307310
/// This is the entrypoint for a hot plugged rustc_codegen_cranelift

0 commit comments

Comments
 (0)