Skip to content

Commit 61c3458

Browse files
committed
Add missing --check-cfg
1 parent b2a6602 commit 61c3458

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

compiler/rustc_codegen_cranelift/build_system/build_sysroot.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,8 @@ pub(crate) fn build_sysroot(
5252
.arg(dirs.source_dir.join("scripts").join(format!("{wrapper}.rs")))
5353
.arg("-o")
5454
.arg(&wrapper_path)
55-
.arg("-Cstrip=debuginfo");
55+
.arg("-Cstrip=debuginfo")
56+
.arg("--check-cfg=cfg(support_panic_unwind)");
5657
if panic_unwind_support {
5758
build_cargo_wrapper_cmd.arg("--cfg").arg("support_panic_unwind");
5859
}

0 commit comments

Comments
 (0)