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.
-znostart-stop-gc
1 parent 58f09d7 commit 016e9beCopy full SHA for 016e9be
1 file changed
src/zig.rs
@@ -289,6 +289,10 @@ impl Zig {
289
// https://github.com/rust-lang/rust/blob/542ed2bf72b232b245ece058fc11aebb1ca507d7/compiler/rustc_codegen_ssa/src/back/linker.rs#L723
290
// zig doesn't support --no-undefined-version
291
return vec![];
292
+ } else if arg == "-Wl,-znostart-stop-gc" {
293
+ // https://github.com/rust-lang/rust/blob/c580c498a1fe144d7c5b2dfc7faab1a229aa288b/compiler/rustc_codegen_ssa/src/back/link.rs#L3371
294
+ // zig doesn't support -znostart-stop-gc
295
+ return vec![];
296
}
297
if target_info.is_musl || target_info.is_ohos {
298
// Avoids duplicated symbols with both zig musl libc and the libc crate
0 commit comments