-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Closed
Description
emscripten has traditionally been configured by a config file
in the current users home directory. emsdk has an --embedded
option
that puts the config file within the SDK itself. This is useful for
users who have multiple emscripten installations and/or checkout and
want to have different configuration file for each one.
We should search for .emscripten by default alongside the emscripten
source code, and use the local configuration if found. This will allow
emsdk and other packagers to ship config files inside the emscripten
directory. emsdk and other packages don't need or want a user config
file since they tend to package things in known paths.
The plan is to move towards embedded config (and cache for that matter)
in several stages:
- Switch emsdk --embedded to store the config in the emscripten folder
directly rather than in the emsdk dir. This will allow a different
config for each emscripten version. - Have emscripten, by default, look for a local config file.
- Make --embedded the default for emsdk.
- Stop exporting EM_CONFIG in emsdk (since the config can be found
automatically now). - Have emscripten write the "new user" config file locally by default.
- Default to a local "cache" directory in emscripten.
- Stop supporting config files in $HOME.
kripken and bvibber
Activity
Support for embedded .emscripten config
Support for embedded .emscripten config
Support for embedded .emscripten config
Support for embedded .emscripten config (#9547)
dschuff commentedon Oct 10, 2019
Do we want to support the case where the emscripten directory is read-only? Obviously by default for most users it will be fine to e.g. have a RO image or directory with an embedded config. We could force users who want a custom config to build their own SDK directory (even if it's just by copying from a prebuilt image), or we could allow some way of overriding (I guess --em-config still works?)
sbc100 commentedon Oct 11, 2019
Yes, we do need to consider RO directories.
I see three main use cases:
sbc100 commentedon Oct 11, 2019
Did I miss any?
Use embedded configuration by default
Support emsdk --embedded mode
Use embedded configuration by default
30 remaining items