I see. Can I reliably expect that all possible defaults for any setting will be listed in that setting's documentation in settings.js, then? If so, it'd still be good to note that somewhere in documentation to avoid such questions in the future. (I haven't found anyone asking before but maybe there was.)
Besides ASSERTIONS, I can only find such info for TEXTDECODER and a vague "Minification requires at least -O1 or -Os to be used." for MINIFY_HTML, which is much fewer than I'd expect. I'm worried that stuff got omitted. On Tuesday, 4 March 2025 at 20:09:23 UTC+1 [email protected] wrote: > settings.js contains the defaults, at the default compilation settings > (which is -O0). It should also mention what changes in higher optimization > levels. I think most places do, though I see ASSERTIONS lacks a comment > saying it is disabled in -O1 and above, which is a bug (I opened > https://github.com/emscripten-core/emscripten/pull/23823 for that now). > > > On Tue, Mar 4, 2025 at 7:07 AM Xellos <[email protected]> wrote: > >> Hello, >> where can I find the default values of settings at various optimization >> levels? >> >> E.g. in settings.js, I can see "ASSERTIONS=1 is the default at -O0", but >> I can't find any document containing the full list of such defaults. I'd >> expect it linked from >> https://emscripten.org/docs/optimizing/Optimizing-Code.html. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "emscripten-discuss" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To view this discussion visit >> https://groups.google.com/d/msgid/emscripten-discuss/860453dc-76f8-40ab-b96c-e25b714821d0n%40googlegroups.com >> >> <https://groups.google.com/d/msgid/emscripten-discuss/860453dc-76f8-40ab-b96c-e25b714821d0n%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> > -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion visit https://groups.google.com/d/msgid/emscripten-discuss/ef4404ed-f4b9-419d-8f5f-f3c36fee72abn%40googlegroups.com.
