Skip to content

fix: disable LTO for addon builds on Windows#3331

Open
owlstronaut wants to merge 1 commit into
nodejs:mainfrom
owlstronaut:owlstronaut/win-fix
Open

fix: disable LTO for addon builds on Windows#3331
owlstronaut wants to merge 1 commit into
nodejs:mainfrom
owlstronaut:owlstronaut/win-fix

Conversation

@owlstronaut

@owlstronaut owlstronaut commented Jun 9, 2026

Copy link
Copy Markdown
Contributor
Checklist
  • npm install && npm run lint && npm test passes
  • tests are included
  • commit message follows commit guidelines
Description of change

Addon builds on Windows were failing because LTO flags from Node's own build leak in through common.gypi and MSVC rejects them. This disables LTO during configure so addons build cleanly.

fixes #3327

@owlstronaut owlstronaut marked this pull request as ready for review June 9, 2026 23: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.

GitHub Actions are failing on Windows on Node.js v26

1 participant