Skip to content

Remove internal settings.LTO in favor of options.lto - #27422

Open
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:remove_lto_setting
Open

Remove internal settings.LTO in favor of options.lto#27422
sbc100 wants to merge 1 commit into
emscripten-core:mainfrom
sbc100:remove_lto_setting

Conversation

@sbc100

@sbc100 sbc100 commented Jul 27, 2026

Copy link
Copy Markdown
Collaborator

Followup to #27407

Because settings.LTO was an internal setting not used anywhere in JavaScript libraries or runtime code. This change removes LTO from src/settings_internal.js and stores -flto / -fno-lto state in options.lto on EmccOptions instead.

In the long run I hope to use internal settings only for values that need to flow out the the JS compiler.

Followup to emscripten-core#27407

Because `settings.LTO` was an internal setting not used anywhere
in JavaScript libraries or runtime code.  This change removes `LTO` from
`src/settings_internal.js` and stores `-flto` / `-fno-lto` state in
`options.lto` on `EmccOptions` instead.
@sbc100
sbc100 requested a review from kripken July 27, 2026 22:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant