We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--color always
1 parent c8915ee commit 04b6036Copy full SHA for 04b6036
src/bootstrap/builder.rs
@@ -814,12 +814,22 @@ impl<'a> Builder<'a> {
814
cargo.env("REAL_LIBRARY_PATH", e);
815
}
816
817
+ // Found with `rg "init_env_logger\("`. If anyone uses `init_env_logger`
818
+ // from out of tree it shouldn't matter, since x.py is only used for
819
+ // building in-tree.
820
+ let color_logs = ["RUSTDOC_LOG_COLOR", "RUSTC_LOG_COLOR", "RUST_LOG_COLOR"];
821
match self.build.config.color {
822
Color::Always => {
823
cargo.arg("--color=always");
824
+ for log in &color_logs {
825
+ cargo.env(log, "always");
826
+ }
827
828
Color::Never => {
829
cargo.arg("--color=never");
830
831
+ cargo.env(log, "never");
832
833
834
Color::Auto => {} // nothing to do
835
0 commit comments