Skip to content

Commit 60c2aab

Browse files
bootstrap: Only add rustc_randomized_layouts if the crate has it
1 parent 13400c2 commit 60c2aab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bootstrap/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ impl Build {
748748
features.push("llvm");
749749
}
750750
// keep in sync with `bootstrap/compile.rs:rustc_cargo_env`
751-
if self.config.rust_randomize_layout {
751+
if self.config.rust_randomize_layout && check("rustc_randomized_layouts") {
752752
features.push("rustc_randomized_layouts");
753753
}
754754

0 commit comments

Comments
 (0)