Collect warnings to print them

This commit is contained in:
Gwilym Kuiper 2022-04-26 22:15:32 +01:00
parent b49eff2460
commit c3bfe83f6b

View file

@ -25,5 +25,11 @@ fn main() {
String::from_utf8_lossy(&out.stderr)
);
for warning_line in String::from_utf8_lossy(&out.stderr).split('\n') {
if !warning_line.is_empty() {
println!("cargo:warning={}", warning_line);
}
}
println!("cargo:rustc-link-search={}", out_dir);
}