Skip to content

Commit 0a8b006

Browse files
committed
Use -znostart-stop-gc for LLD
1 parent aaa8614 commit 0a8b006

File tree

1 file changed

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

1 file changed

+1
-0
lines changed

compiler/rustc_codegen_ssa/src/back/link.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3338,6 +3338,7 @@ fn add_lld_args(
33383338
"add_lld_args requested, flavor: '{:?}', target self-contained components: {:?}",
33393339
flavor, self_contained_components,
33403340
);
3341+
cmd.cc_arg("-znostart-stop-gc");
33413342

33423343
// If the flavor doesn't use a C/C++ compiler to invoke the linker, or doesn't opt in to `lld`,
33433344
// we don't need to do anything.

0 commit comments

Comments
 (0)