Skip to content

Commit 180a6b2

Browse files
authored
Rollup merge of #46705 - pornel:cargo-output, r=alexcrichton
Help Cargo tolerate RUSTFLAGS="--print=native-static-libs" Alternative to rust-lang/cargo#4807 Having this "error" message was a mistake, as it's firing at exactly wrong time when Cargo is trying to read the output of other print commands.
2 parents 1375be8 + 2f33093 commit 180a6b2

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/librustc_driver/lib.rs

+2-3
Original file line numberDiff line numberDiff line change
@@ -810,9 +810,8 @@ impl RustcDefaultCalls {
810810
PrintRequest::TargetCPUs | PrintRequest::TargetFeatures => {
811811
rustc_trans::print(*req, sess);
812812
}
813-
PrintRequest::NativeStaticLibs => {
814-
println!("Native static libs can be printed only during linking");
815-
}
813+
// Any output here interferes with Cargo's parsing of other printed output
814+
PrintRequest::NativeStaticLibs => {}
816815
}
817816
}
818817
return Compilation::Stop;

0 commit comments

Comments
 (0)