From 37ad3278d273c6026359484293ed9af4a829c6c1 Mon Sep 17 00:00:00 2001 From: Sebastian Wiesner Date: Sat, 14 Sep 2024 14:06:32 +0200 Subject: [PATCH] Fix cargo instructions in build.rs function According to cargo's documentation cargo instructions must be prefixed with cargo:: --- glib-build-tools/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/glib-build-tools/src/lib.rs b/glib-build-tools/src/lib.rs index 1d063bb24ad5..0a2662f09453 100644 --- a/glib-build-tools/src/lib.rs +++ b/glib-build-tools/src/lib.rs @@ -39,7 +39,7 @@ pub fn compile_resources>(source_dirs: &[P], gresource: &str, tar String::from_utf8_lossy(&output.stderr) ); - println!("cargo:rerun-if-changed={gresource}"); + println!("cargo::rerun-if-changed={gresource}"); let mut command = Command::new("glib-compile-resources"); for source_dir in source_dirs { @@ -54,6 +54,6 @@ pub fn compile_resources>(source_dirs: &[P], gresource: &str, tar .stdout; let output = String::from_utf8(output).unwrap(); for dep in output.split_whitespace() { - println!("cargo:rerun-if-changed={dep}"); + println!("cargo::rerun-if-changed={dep}"); } }