-
Notifications
You must be signed in to change notification settings - Fork 694
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
emsdk_env.sh doesn't work on cygwin due to wrong PATH parsing #1079
Comments
Feel free to send patches to improve the cygwin support. Sadly we don't have any testing of the cygwin environment, so one thing that would be very useful is adding cynwin to the github CI setup. |
#1080 :) |
Are you using the cygwin version or python.exe or a windows version of python.exe? Because in CI we are running under bash.exe, but we are using are native windows version of python.exe (which reports os.environ['PATH'] as with windows path separators) |
I'm using the python from cygwin (as you might see in the PR comment), specifically python 3.9.10 on cygwin |
the
emsdk_env.sh
script produces a jumbled upPATH
when used under cygwin.I was able to track the problem down to the wrong
ENVPATH_SEPERATOR
value beeing picked inemsdk.py
(line 126-129).The standard cygwin shell is bash so it uses ':' instead of ';' to seperate it's
PATH
, but here it is parsed as if it were using ';'.I'm not sure how to fix it, I added an extra
and not MSYS
to theif WINDOWS:
line(line 126), and that seemed to work, but I'm not sure if that's the optimal solution.I'm also not sure what other things might me affected by this problem, everything else besides the mentioned
emsdk_env.sh
worked for me.The text was updated successfully, but these errors were encountered: