Skip to content

Commit f2f44fa

Browse files
committed
linker: Add search_paths parameter to link_dylib_by_name
This allows for implementing looking up Meson and MinGW import libraries. See #122455
1 parent 266326f commit f2f44fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/back/linker.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ impl<'a> Linker for MsvcLinker<'a> {
807807
}
808808
}
809809

810-
fn link_dylib_by_name(&mut self, name: &str, verbatim: bool, _as_needed: bool) {
810+
fn link_dylib_by_name(&mut self, name: &str, verbatim: bool, _search_paths: &SearchPaths, _as_needed: bool) {
811811
self.cmd.arg(format!("{}{}", name, if verbatim { "" } else { ".lib" }));
812812
}
813813

0 commit comments

Comments
 (0)