Skip to content

Feature idea: variant of --override-repository that symlinks to local checkout #1529

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

Open
hoodmane opened this issue Feb 8, 2025 · 2 comments

Comments

@hoodmane
Copy link

hoodmane commented Feb 8, 2025

For example, if I've cloned emscripten at ~/emscripten then the idea would be that:

./emsdk install tot  --override-symlink emscripten-main@~/emscripten

would make emsdk/upstream/emscripten into a symlink pointing to ~/emscripten.

@sbc100
Copy link
Collaborator

sbc100 commented Feb 8, 2025

If you are just trying to use emsdk binaryies with your existing emscripten checkout that I think they easiest thing to do is just export EM_CONFIG=/path/to/emsdk/.emscripten when then just put your version of emcc first on the PATH. You don't need to tell emsdk about your emscripten check.

Or you can just run ./test/runner or ./emcc from you checkout with EM_CONFIG set.

When EM_CONFIG is set you don't need a config file at all in your checked out version of emscripten.

@sbc100
Copy link
Collaborator

sbc100 commented Feb 8, 2025

You also don't need to run source emsdk_env.sh in this case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants