integration-test: Fix build.rs output

The cargo::warning seems to ignore output after a newline.
Iterate over the entire rendered message and print it line-by-line.

Signed-off-by: Dave Tucker <dave@dtucker.co.uk>
pull/883/head
Dave Tucker 9 months ago
parent 2d721971cf
commit 0c58bb66b6

@ -243,7 +243,9 @@ fn main() {
} }
} }
Message::CompilerMessage(CompilerMessage { message, .. }) => { Message::CompilerMessage(CompilerMessage { message, .. }) => {
println!("cargo:warning={message}"); for line in message.rendered.unwrap_or_default().split('\n') {
println!("cargo:warning={line}");
}
} }
Message::TextLine(line) => { Message::TextLine(line) => {
println!("cargo:warning={line}"); println!("cargo:warning={line}");

@ -86,7 +86,9 @@ where
} }
} }
Message::CompilerMessage(CompilerMessage { message, .. }) => { Message::CompilerMessage(CompilerMessage { message, .. }) => {
println!("{message}"); for line in message.rendered.unwrap_or_default().split('\n') {
println!("cargo:warning={line}");
}
} }
Message::TextLine(line) => { Message::TextLine(line) => {
println!("{line}"); println!("{line}");

Loading…
Cancel
Save