diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2022-12-28 17:45:06 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2022-12-28 17:56:31 +0000 |
| commit | ed77a61901df19dd452e2414897ad9a99ef08203 (patch) | |
| tree | afe123e815828bbd76c59d43f1bc4c9bedb230c5 /compiler/rustc_codegen_ssa/src/back/write.rs | |
| parent | 0b54782cc8261f8e5d6e0b23785ca259a9eef6bf (diff) | |
| download | rust-ed77a61901df19dd452e2414897ad9a99ef08203.tar.gz rust-ed77a61901df19dd452e2414897ad9a99ef08203.zip | |
Explicitly pass in which crate type to use to each_linked_rlib
Otherwise we may pick the dependency formats for say a dylib when linking a staticlib.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back/write.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/write.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/write.rs b/compiler/rustc_codegen_ssa/src/back/write.rs index 1a7de1a184a..7aadcdd2228 100644 --- a/compiler/rustc_codegen_ssa/src/back/write.rs +++ b/compiler/rustc_codegen_ssa/src/back/write.rs @@ -1002,7 +1002,7 @@ fn start_executing_work<B: ExtraBackendMethods>( let sess = tcx.sess; let mut each_linked_rlib_for_lto = Vec::new(); - drop(link::each_linked_rlib(sess, crate_info, &mut |cnum, path| { + drop(link::each_linked_rlib(crate_info, None, &mut |cnum, path| { if link::ignored_for_lto(sess, crate_info, cnum) { return; } |
