From feb5df95871b3083829d21aca34b827261013c12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=98ystein=20Walle?= Date: Wed, 20 May 2026 16:00:07 +0200 Subject: [PATCH] halide-cache: More compact cache hit info The full paths are long and the base name of the generated files are always the same and equal to the name of the Halide target. --- halide-cache/src/main.rs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/halide-cache/src/main.rs b/halide-cache/src/main.rs index 5f20788..bf9e007 100644 --- a/halide-cache/src/main.rs +++ b/halide-cache/src/main.rs @@ -177,8 +177,11 @@ fn cache_hit( ) { (Ok(_), Ok(_)) => { println!( - "Cache hits for Halide objects: {:?} and {:?}", - generated_object, generated_header + "Cache hits for Halide target {}", + generated_object + .file_prefix() + .expect("Generated object has a file name") + .display() ); Ok(true) }