emscripten-core / emsdk

Emscripten SDK
http://emscripten.org
Other
2.92k stars 662 forks source link

emcc.bat prints out extra lines if emsdk is installed in path with spaces (HostOS: Windows) #1322

Closed aportale closed 7 months ago

aportale commented 7 months ago

When executing emcc.bat -dumpversion, I would usually just get an output with a version number like 3.1.50:

image

If emsdk is installed within a path that contains spaces, the output contains extra lines:

image

This extra output of the compiler can cause issues, like for example in the Qt Creator IDE: QTCREATORBUG-29758 QTCREATORBUG-29981

This problem does not occur if only the last path segment contains spaces:

image

I assume that prepending the respective lines in the .bat wrapper files with a @ or even adding an @echo off in the beginning should fix the issue. I will try to file a pull request with such fix.

aportale commented 7 months ago

Transferred to: https://github.com/emscripten-core/emscripten/issues/20913