Skip to content
Prev Previous commit
Next Next commit
[wasm] Quote filenames passed to emcc compile command line
  • Loading branch information
radical committed Jul 21, 2021
commit d61c225fb2fb4e31d5ccd9d953848e1882f5bbde
2 changes: 1 addition & 1 deletion src/tasks/WasmAppBuilder/EmccCompile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ bool ProcessSourceFile(ITaskItem srcItem)

try
{
string command = $"emcc {Arguments} -c -o {objFile} {srcFile}";
string command = $"emcc {Arguments} -c -o \"{objFile}\" \"{srcFile}\"";

// Log the command in a compact format which can be copy pasted
StringBuilder envStr = new StringBuilder(string.Empty);
Expand Down