From 795b5c24f45b3f67a3a331a53e80a6a02087f190 Mon Sep 17 00:00:00 2001 From: Ankit Jain Date: Tue, 23 Jan 2024 18:08:53 -0500 Subject: [PATCH] [wasi/wasm] EmccCompile.cs: quote the compiler path This broke in PR#95051 which changed the task to use a custom path to the compiler instead of using `emcc` from `PATH`. Fixes https://github.com/dotnet/AspNetCore-ManualTests/issues/2594 . --- src/tasks/WasmAppBuilder/EmccCompile.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tasks/WasmAppBuilder/EmccCompile.cs b/src/tasks/WasmAppBuilder/EmccCompile.cs index 0373abea393a85..3471206f7abdee 100644 --- a/src/tasks/WasmAppBuilder/EmccCompile.cs +++ b/src/tasks/WasmAppBuilder/EmccCompile.cs @@ -193,7 +193,7 @@ bool ProcessSourceFile(string srcFile, string objFile) string tmpObjFile = Path.GetTempFileName(); try { - string command = $"{CompilerBinaryPath} {Arguments} -c -o \"{tmpObjFile}\" \"{srcFile}\""; + string command = $"\"{CompilerBinaryPath}\" {Arguments} -c -o \"{tmpObjFile}\" \"{srcFile}\""; var startTime = DateTime.Now; // Log the command in a compact format which can be copy pasted