From 9b32a1f43e1d1b2d0792d6fe5d77d494e016fc68 Mon Sep 17 00:00:00 2001 From: messense Date: Sat, 11 Jan 2025 18:25:09 +0800 Subject: [PATCH] Remove `.intentionally-empty-file.o` file --- src/zig.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/zig.rs b/src/zig.rs index 4c77d2b..6024f77 100644 --- a/src/zig.rs +++ b/src/zig.rs @@ -660,7 +660,9 @@ impl Zig { .arg("-E") .arg(&empty_file_path) .arg("-v") - .output()?; + .output(); + fs::remove_file(&empty_file_path).ok(); + let output = output?; // Clang always generates UTF-8 regardless of locale, so this is okay. let stderr = String::from_utf8(output.stderr)?; if !output.status.success() {