From 22117b6f215133ef8bb9caad426a153a521ddcc5 Mon Sep 17 00:00:00 2001 From: messense Date: Wed, 9 Oct 2024 19:52:10 +0800 Subject: [PATCH] Quote executable path on Windows --- src/zig.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/zig.rs b/src/zig.rs index 370387c..e00f69c 100644 --- a/src/zig.rs +++ b/src/zig.rs @@ -1412,7 +1412,7 @@ fn write_linker_wrapper(path: &Path, command: &str, args: &str) -> Result<()> { }; writeln!( &mut buf, - "{} zig {} -- {} %*", + "\"{}\" zig {} -- {} %*", adjust_canonicalization(current_exe), command, args