From 85c5e5df3d3b5c6c2e01682449d93dfcd59c6fe9 Mon Sep 17 00:00:00 2001 From: Daniel McNab <36049421+DJMcNab@users.noreply.github.com> Date: Mon, 30 Sep 2024 08:49:41 +0100 Subject: [PATCH] Actually display the warnings from the shaders --- vello_shaders/build.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/vello_shaders/build.rs b/vello_shaders/build.rs index 79abde65..57930b26 100644 --- a/vello_shaders/build.rs +++ b/vello_shaders/build.rs @@ -24,7 +24,10 @@ fn main() { let mut shaders = match compile::ShaderInfo::from_default() { Ok(s) => s, Err(err) => { - eprintln!("{err}"); + let formatted = err.to_string(); + for line in formatted.lines() { + println!("cargo:warning={line}"); + } return; } };