Skip to content

Commit c383d38

Browse files
committed
Avoid using open_global_now
1 parent bd18a92 commit c383d38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_driver/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ fn load_backend_from_dylib(path: &Path) -> fn() -> Box<dyn CodegenBackend> {
226226
// available for future dynamic libraries opened. This is currently used by
227227
// loading LLVM and then making its symbols available for other dynamic
228228
// libraries.
229-
let lib = DynamicLibrary::open_global_now(path).unwrap_or_else(|err| {
229+
let lib = DynamicLibrary::open(Some(path)).unwrap_or_else(|err| {
230230
let err = format!("couldn't load codegen backend {:?}: {:?}", path, err);
231231
early_error(ErrorOutputType::default(), &err);
232232
});

0 commit comments

Comments
 (0)