Skip to content

Commit

Permalink
linker: Add search_paths parameter to link_dylib_by_name
Browse files Browse the repository at this point in the history
This allows for implementing looking up Meson and MinGW import
libraries.

See #122455
  • Loading branch information
amyspark committed Apr 18, 2024
1 parent 266326f commit f2f44fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/rustc_codegen_ssa/src/back/linker.rs
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ impl<'a> Linker for MsvcLinker<'a> {
}
}

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

Expand Down

0 comments on commit f2f44fa

Please sign in to comment.