Remove internal JS settings in favor of EmccOptions fields - #27537
Conversation
Remove internal settings `OPT_LEVEL`, `USE_RTTI`, `DEBUG_LEVEL`, `EMIT_SYMBOL_MAP`, `SOURCE_MAP_BASE`, and `MINIFICATION_MAP` from `src/settings_internal.js` and `tools/settings.py` since they are toolchain-internal settings not used in JavaScript libraries or runtime code. Store their state on `EmccOptions` fields instead.
EmccOptions fieldsEmccOptions fields
|
So the idea is that settings would only be for things that are needed in JS libraries? |
Public settings do correspond to All public and internal settings get serialized to from python to the JS compiler and the JS compiler can use things like |
Remove internal settings
OPT_LEVEL,USE_RTTI,DEBUG_LEVEL,EMIT_SYMBOL_MAP,SOURCE_MAP_BASE, andMINIFICATION_MAPfromsrc/settings_internal.jsandtools/settings.pysince they are toolchain-internal settings not used in JavaScript libraries or runtime code. Store their state onEmccOptionsfields instead.