Skip to content

Commit a175969

Browse files
committed
Avoid using open_global_now
1 parent ea7fef1 commit a175969

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_driver/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ fn load_backend_from_dylib(path: &Path) -> fn() -> Box<dyn CodegenBackend> {
207207
// available for future dynamic libraries opened. This is currently used by
208208
// loading LLVM and then making its symbols available for other dynamic
209209
// libraries.
210-
let lib = DynamicLibrary::open_global_now(path).unwrap_or_else(|err| {
210+
let lib = DynamicLibrary::open(Some(path)).unwrap_or_else(|err| {
211211
let err = format!("couldn't load codegen backend {:?}: {:?}", path, err);
212212
early_error(ErrorOutputType::default(), &err);
213213
});

0 commit comments

Comments
 (0)