xtask: drop build script logging prefix

This code doesn't run under cargo.
reviewable/pr1365/r8
Tamir Duberstein 1 week ago
parent 112ab47fcd
commit 2b8cd557aa
No known key found for this signature in database

@ -87,8 +87,8 @@ where
} }
} }
Message::CompilerMessage(CompilerMessage { message, .. }) => { Message::CompilerMessage(CompilerMessage { message, .. }) => {
for line in message.rendered.unwrap_or_default().split('\n') { if let Some(rendered) = message.rendered {
println!("cargo:warning={line}"); print!("{rendered}");
} }
} }
Message::TextLine(line) => { Message::TextLine(line) => {
@ -210,7 +210,7 @@ pub(crate) fn run(opts: Options) -> Result<()> {
})?; })?;
if dest_path_exists != etag_path_exists { if dest_path_exists != etag_path_exists {
println!( println!(
"cargo:warning=({}).exists()={} != ({})={} (mismatch)", "({}).exists()={} != ({})={} (mismatch)",
dest_path.display(), dest_path.display(),
dest_path_exists, dest_path_exists,
etag_path.display(), etag_path.display(),
@ -239,7 +239,7 @@ pub(crate) fn run(opts: Options) -> Result<()> {
if status.code() != Some(0) { if status.code() != Some(0) {
if dest_path_exists { if dest_path_exists {
println!( println!(
"cargo:warning={curl:?} failed ({status:?}); using cached {}", "{curl:?} failed ({status:?}); using cached {}",
dest_path.display() dest_path.display()
); );
} else { } else {

Loading…
Cancel
Save