Skip to content

Commit

Permalink
Update libc and libloading
Browse files Browse the repository at this point in the history
  • Loading branch information
bjorn3 committed Feb 9, 2021
1 parent 6fe5eac commit bfcf97b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object = { version = "0.23.0", default-features = false, features = ["std", "rea

ar = { git = "https://github.com/bjorn3/rust-ar.git", branch = "do_not_remove_cg_clif_ranlib" }
indexmap = "1.0.2"
libloading = { version = "0.6.0", optional = true }
libloading = { version = "0.7.0", optional = true }
smallvec = "1.6.1"

# Uncomment to use local checkout of cranelift
Expand Down
2 changes: 1 addition & 1 deletion src/driver/jit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ fn load_imported_symbols_for_jit(tcx: TyCtxt<'_>) -> Vec<(String, *const u8)> {
let mut imported_symbols = Vec::new();
for path in dylib_paths {
use object::{Object, ObjectSymbol};
let lib = libloading::Library::new(&path).unwrap();
let lib = unsafe { libloading::Library::new(&path).unwrap() };
let obj = std::fs::read(path).unwrap();
let obj = object::File::parse(&obj).unwrap();
imported_symbols.extend(obj.dynamic_symbols().filter_map(|symbol| {
Expand Down

0 comments on commit bfcf97b

Please sign in to comment.