Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 50fcee0

Browse files
committed
Link rlibs with --whole-archive
1 parent 234bc21 commit 50fcee0

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_codegen_ssa/src/back

1 file changed

+1
-1
lines changed

compiler/rustc_codegen_ssa/src/back/link.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2956,7 +2956,7 @@ fn add_static_crate(
29562956
let cratepath = &src.rlib.as_ref().unwrap().0;
29572957

29582958
let mut link_upstream =
2959-
|path: &Path| cmd.link_staticlib_by_path(&rehome_lib_path(sess, path), false);
2959+
|path: &Path| cmd.link_staticlib_by_path(&rehome_lib_path(sess, path), true);
29602960

29612961
if !are_upstream_rust_objects_already_included(sess)
29622962
|| ignored_for_lto(sess, &codegen_results.crate_info, cnum)

0 commit comments

Comments
 (0)