-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
The --cache option doesn't work in emcc: emcc.py saves the cache directory into config.CACHE, but tools/cache.py uses its own local CACHE variable #23284
Comments
Can you explain your use case a little more.
I just confirmed I highly recommend just letting emscripten use the default value. Can you explain why the default value doesn't working for your use case? |
In FreeBSD we install emscripten into a read-only location, so the default cache location can't work because it ends up in a read-only location too. The |
Please make the current directory read-only and you will see that --cache really doesn't work. |
I see. That does sounds like reasonable use case. If you are overriding the cache directory for all users, would it not make sense to add I wonder why |
Because you use a writable location. |
I'm must be doing something different to you:
|
If I run with (as I said above I think it would be better use the config file in any case). |
You should do something like this:
This should reproduce the problem. |
This works for me, but I do also need to set
Can you share the full command line along with the output you are seeing? Also, can you share the config file you are using? |
emscripten is installed into /usr/local/lib/emscripten which is read-only. This command: prints this when the cache directory isn't present:
|
Ah I see, I think this is because emscripten is calling sub-processes to populate the cache but those don't inherit the Can you trying using |
I think it might make sense to remove the |
Awesome, in that case I'll propose removing |
Actually I was just looking to this and it looks like we set Lines 1368 to 1373 in ff146f3
|
I'm now trying to reproduce again since I can't see how this could be happening.
Here all the subcommands to build the libraries seem to be using the cache configured with |
Please make sure that config.CACHE in emcc.py and CACHE in tools/config.py always refer to the same value.
Version: 3.1.74
FreeBSD 14.1
The text was updated successfully, but these errors were encountered: