Skip to content

Commit eed2e27

Browse files
authored
Replace println with print_warning in Build::try_get_compiler
A println would not be seen by user unless -v is passed to cargo, using print_warning here makes more sense as user can see the message by default and also disable it if they don't want to see it.
1 parent 2c85112 commit eed2e27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1762,7 +1762,7 @@ impl Build {
17621762
if !no_defaults {
17631763
self.add_default_flags(&mut cmd, &target, &opt_level)?;
17641764
} else {
1765-
println!("Info: default compiler flags are disabled");
1765+
self.cargo_output.print_warning("default compiler flags are disabled");
17661766
}
17671767

17681768
if let Some(ref std) = self.std {

0 commit comments

Comments
 (0)