Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4394f94

Browse files
committedMar 17, 2025
Only add rustc_randomized_layouts if the crate has it
1 parent 417bfe2 commit 4394f94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/bootstrap/src/lib.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -683,7 +683,7 @@ impl Build {
683683
features.push("llvm");
684684
}
685685
// keep in sync with `bootstrap/compile.rs:rustc_cargo_env`
686-
if self.config.rust_randomize_layout {
686+
if self.config.rust_randomize_layout && check("rustc_randomized_layouts") {
687687
features.push("rustc_randomized_layouts");
688688
}
689689

0 commit comments

Comments
 (0)
Failed to load comments.