We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--whole-archive
1 parent 234bc21 commit 50fcee0Copy full SHA for 50fcee0
compiler/rustc_codegen_ssa/src/back/link.rs
@@ -2956,7 +2956,7 @@ fn add_static_crate(
2956
let cratepath = &src.rlib.as_ref().unwrap().0;
2957
2958
let mut link_upstream =
2959
- |path: &Path| cmd.link_staticlib_by_path(&rehome_lib_path(sess, path), false);
+ |path: &Path| cmd.link_staticlib_by_path(&rehome_lib_path(sess, path), true);
2960
2961
if !are_upstream_rust_objects_already_included(sess)
2962
|| ignored_for_lto(sess, &codegen_results.crate_info, cnum)
0 commit comments