Skip to content

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

Merged
sbc100 merged 1 commit into
emscripten-core:mainfrom
sbc100:remove_lto_setting
Jul 30, 2026
Merged

Remove internal settings.LTO in favor of options.lto#27422
sbc100 merged 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.

@sbc100
sbc100 requested a review from kripken July 27, 2026 22:24
Comment thread tools/building.py Outdated
@sbc100
sbc100 force-pushed the remove_lto_setting branch 2 times, most recently from 918b083 to 9e96101 Compare July 28, 2026 23:59

@kripken kripken left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm otherwise

Comment thread tools/cache.py
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 force-pushed the remove_lto_setting branch from 9e96101 to c572d6b Compare July 30, 2026 19:19
@sbc100
sbc100 merged commit 223995c into emscripten-core:main Jul 30, 2026
41 checks passed
@sbc100
sbc100 deleted the remove_lto_setting branch July 30, 2026 20:22
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.

2 participants