-
Notifications
You must be signed in to change notification settings - Fork 779
Cleanup emsdk_env scripts #539
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
Conversation
Remove the optional argument to contruct_env. It simple if we always construct the env in the same place. Avoid using temp files, and avoid changing directory.
tlively
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like some nice simplifications to me. Do we have any testing to guarantee that all the more esoteric shell scripts still work?
|
No tests for this stuff no :( Of course it would be nice if we had some... but I'm not signing up to do that today :) |
The current HEAD of emsdk repository includes a change that causes the
builds to fail with an error:
Adding directories to PATH:
PATH += /home/user/emsdk
PATH += /home/user/emsdk/fastcomp/emscripten
PATH += /home/user/emsdk/node/12.18.1_64bit/bin
Setting environment variables:
EMSDK = /home/user/emsdk
EM_CONFIG = /home/user/emsdk/.emscripten
EM_CACHE = /home/user/emsdk/fastcomp/emscripten/cache
EMSDK_NODE = /home/user/emsdk/node/12.18.1_64bit/bin/node
/home/user/emsdk/emsdk_env.sh: line 26: /home/user/emsdk/emsdk_set_env.sh: No such file or directory
The change [1] has optimized environment variable setup. Apparently,
it has issues. To avoid breaking our builds, roll back to the previous
known good state for the time being. The issue has been reported to
Emscripten [2], but it's not clear when it's going to be reverted and
fixed, so we'd rather not depend on that right now, when Themis release
is brewing.
[1]: emscripten-core/emsdk#539
[2]: emscripten-core/emsdk#540
The current HEAD of emsdk repository includes a change that causes the
builds to fail with an error:
Adding directories to PATH:
PATH += /home/user/emsdk
PATH += /home/user/emsdk/fastcomp/emscripten
PATH += /home/user/emsdk/node/12.18.1_64bit/bin
Setting environment variables:
EMSDK = /home/user/emsdk
EM_CONFIG = /home/user/emsdk/.emscripten
EM_CACHE = /home/user/emsdk/fastcomp/emscripten/cache
EMSDK_NODE = /home/user/emsdk/node/12.18.1_64bit/bin/node
/home/user/emsdk/emsdk_env.sh: line 26: /home/user/emsdk/emsdk_set_env.sh: No such file or directory
The change [1] has optimized environment variable setup. Apparently,
it has issues. To avoid breaking our builds, roll back to the previous
known good state for the time being. The issue has been reported to
Emscripten [2], but it's not clear when it's going to be reverted and
fixed, so we'd rather not depend on that right now, when Themis release
is brewing.
[1]: emscripten-core/emsdk#539
[2]: emscripten-core/emsdk#540
|
Today when I started my environment, I got this error when sourcing |
|
I have the same problem; this happens when emsdk_env.sh is sourced from a folder that's not emsdk (e.g. |
|
Sorry about this, I think it's fixed by #541 which I am landing right now. |
|
The optional argument was added to fix this: |
|
Oops, sorry about that. I'll take a look. |
|
At I see the problem. I will see if we can swich to using stdout instead (a la |
This is an alternative fix for emscripten-core/emscripten#9090 which recently came up again after #539. Tested with bash, tcsh and fish.
This is an alternative fix for emscripten-core/emscripten#9090 which recently came up again after #539. Tested with bash, tcsh and fish.
This is an alternative fix for emscripten-core/emscripten#9090 which recently came up again after #539. Tested with bash, tcsh and fish.
Remove the optional argument to contruct_env. It simple if we
always construct the env in the same place. Avoid using temp files,
and avoid changing directory.