GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Backport the Windows addon LTO fix to node-gyp v12.x · Issue #3391 · nodejs/node-gyp

Backport the Windows addon LTO fix to node-gyp v12.x #3391

New issue
Copy link
New issue
Copy link
Open
Open
Backport the Windows addon LTO fix to node-gyp v12.x#3391
Copy link
Labels
Windows

Description

@StefanStojanovic
StefanStojanovic
opened on Nov 6, 2026
Issue body actions

Hello everyone, would you consider backporting d30bb6e (“disable LTO for addon builds on Windows”) to a new v12.x release?

I have prepared a branch based on v12.4.0 containing the backport. I'm not familiar with the release process for older node-gyp majors, so I'd like to confirm whether this is something the project would consider.

This would unblock nodejs/node#66170, which backports Thin LTO for official Windows builds to Node.js v24. Thin LTO is already enabled in Node.js v26, and PGO changes have already been backported to v24.

The remaining concern is native-addon compatibility: without this fix, Node.js's Thin LTO configuration leaks clang/lld-specific flags into addon builds using the default MSVC toolchain, causing failures. The fix disables LTO for Windows addon builds while preserving it for Node.js itself.

The dependency constraints are:

  • Node.js v24 and v26 bundle npm v11. The Release WG decided not to ship npm v12 in those release lines.
  • npm v11 currently bundles node-gyp v12.
  • node-gyp v13 contains the fix, but its Node.js engine requirements exclude versions that npm v11 still supports, including Node.js v20. Updating npm v11 to node-gyp v13 would therefore conflict with its existing compatibility range.

The proposed path would be:

  • Backport the fix and publish a node-gyp v12.x release.
  • Coordinate with npm maintainers to include that release in npm v11.
  • Update the bundled npm in Node.js v24 and v26.
  • With the addon compatibility fix available, resume review of the Thin LTO backport for Node.js v24.

Would you be open to this backport, and what branch should a PR target?

Reacted by Christian Clauss

Activity

  1. StefanStojanovic commented on Nov 17, 2026

    @StefanStojanovic
    StefanStojanovic
    on Nov 17, 2026
    ContributorAuthor
    More actions

    Just a friendly reminder about any feedback/ideas? cc @nodejs/node-gyp

  2. cclauss
    added
    Windows
    on Nov 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Windows

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402775 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.