Description
In our use case we install/activate the EMSDK with root user but we use the EMSDK to build app with normal non-root user. This worked before as the .emscripten_cache
and .emscripten_cache.lock
were created in the home-dir of the normal user. The recent EMSDK has broken this use case because it expects the normal user to have write permission to the EMSDK or at least to the parent dir where the cache.lock
resides.
As I understood from WebAssembly/waterfall#644, the "libs" are now pre-built by upstream and as such it is not so much a build-on-demand-and-cache-for-future-use anymore. Do you really still need the "locking" mechanism to prevent concurrent on-demand build? It seems we can bypass this mechanism and allow the non-root user to read from the cache
dir directly.