Skip to content

Commit 548958a

Browse files
committed
x.py: don't enable -Zconfig-profile or -Zexternal-macro-backtrace with x.py clippy
run clippy on #[cfg(not(bootstrap)] code
1 parent f4c675c commit 548958a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bootstrap/builder.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -759,7 +759,8 @@ impl<'a> Builder<'a> {
759759
};
760760

761761
let mut rustflags = Rustflags::new(&target);
762-
if stage != 0 {
762+
// x.py with nightly clippy needs to run over #[cfg(not(bootstrap)] code in order to function
763+
if stage != 0 || cmd == "clippy" {
763764
if let Ok(s) = env::var("CARGOFLAGS_NOT_BOOTSTRAP") {
764765
cargo.args(s.split_whitespace());
765766
}

0 commit comments

Comments
 (0)