René's URL Explorer Experiment


Title: Windows Node 26 enable_thin_lto=true breaks MSVC native addon builds (lldltojobs / -flto=thin) · Issue #64674 · nodejs/node · GitHub

Open Graph Title: Windows Node 26 enable_thin_lto=true breaks MSVC native addon builds (lldltojobs / -flto=thin) · Issue #64674 · nodejs/node

X Title: Windows Node 26 enable_thin_lto=true breaks MSVC native addon builds (lldltojobs / -flto=thin) · Issue #64674 · nodejs/node

Description: Version Node.js v26.5.0 (Windows x64) process.config.variables: clang=1, enable_thin_lto=true, enable_lto=false, llvm_version=19.1.5 node-gyp 12.4.0 Visual Studio 2026 Insiders / MSVC (cl / link.exe) What goes wrong Building a native add...

Open Graph Description: Version Node.js v26.5.0 (Windows x64) process.config.variables: clang=1, enable_thin_lto=true, enable_lto=false, llvm_version=19.1.5 node-gyp 12.4.0 Visual Studio 2026 Insiders / MSVC (cl / link.ex...

X Description: Version Node.js v26.5.0 (Windows x64) process.config.variables: clang=1, enable_thin_lto=true, enable_lto=false, llvm_version=19.1.5 node-gyp 12.4.0 Visual Studio 2026 Insiders / MSVC (cl / link.ex...

Opengraph URL: https://github.com/nodejs/node/issues/64674

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Windows Node 26 enable_thin_lto=true breaks MSVC native addon builds (lldltojobs / -flto=thin)","articleBody":"### Version\n\n- Node.js `v26.5.0` (Windows x64)\n- `process.config.variables`: `clang=1`, `enable_thin_lto=true`, `enable_lto=false`, `llvm_version=19.1.5`\n- node-gyp `12.4.0`\n- Visual Studio 2026 Insiders / MSVC (`cl` / `link.exe`)\n\n### What goes wrong\n\nBuilding a native addon with `node-gyp rebuild` on this Node binary injects **Clang/lld thin-LTO flags** into the MSVC project:\n\n- compiler: `-flto=thin` (MSVC warns `D9002` and ignores)\n- linker: `/opt:lldltojobs=2` → **`LINK : fatal error LNK1117: 选项“opt:lldltojobs=2”中的语法错误`**\n\nReproduced while installing `@stoprocent/bluetooth-hci-socket@2.2.6` (dependency of `@stoprocent/noble` / `@stoprocent/bleno`). The package `binding.gyp` does **not** set these flags; they come from Node’s `common.gypi` LTO conditions once `enable_thin_lto` is true in the generated `build/config.gypi`.\n\nGenerated addon `config.gypi` snippet from the failed build:\n\n```text\n\"clang\": 0,\n\"enable_lto\": \"false\",\n\"enable_thin_lto\": \"true\",\n\"lto_jobs\": \"2\",\n```\n\nSo the addon build is treated as **non-clang MSVC** (`clang: 0`) while still enabling thin LTO options that only make sense for lld.\n\n### Expected\n\nAddon builds on Windows with MSVC should not inherit `enable_thin_lto` / lld-only linker options from the Node binary’s process config when the toolchain is MSVC.\n\nEither:\n\n1. Official Windows Node builds that still use MSVC for addons should ship `enable_thin_lto=false` in the config that node-gyp copies, or\n2. `common.gypi` should gate `-flto=thin` / `/opt:lldltojobs=…` on `clang==1` (and/or an lld linker), not only on `enable_thin_lto`.\n\n### Impact (downstream)\n\n- Deno/`npm` installs of optional BLE stacks fail hard on Windows under Node 26.5.0.\n- `@steve02081504/fount-p2p` documents whitelisting only `node-datachannel` scripts under Deno to avoid pulling these optional builds.\n\nWhen fixed: re-test `npm rebuild @stoprocent/bluetooth-hci-socket` (and Deno `--allow-scripts` for noble/bleno) on Windows Node 26+.\n","author":{"url":"https://github.com/steve02081504","@type":"Person","name":"steve02081504"},"datePublished":"2026-07-22T11:33:24Z","url":"https://github.com/nodejs/node/issues/64674"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:0348db61-48ec-445a-29d0-983779a1617f
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id9A38:10572B:336ED5:42C3D1:6AED1DB8
html-safe-nonce7660c9b0856c6ad9ae16fe82b027a2bb7e2cd708cf2a11341bcd829a96562bc8
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTM4OjEwNTcyQjozMzZFRDU6NDJDM0QxOjZBRUQxREI4IiwidmlzaXRvcl9pZCI6IjQ2NTk5ODU1MzAyMTUwMTM4MTYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac92cf57461193bcd717010b0ce89005a0e3a0e62f523c8f1b4f4c7cdf954f0022
hovercard-subject-tagissue:4948454734
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/64674/issue_layout
twitter:imagehttps://opengraph.githubassets.com/a29e826c1d1805cf58c8c3cc94cd497a60a273aaa5ece172d409050ce20bdad4/nodejs/node/issues/64674
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/a29e826c1d1805cf58c8c3cc94cd497a60a273aaa5ece172d409050ce20bdad4/nodejs/node/issues/64674
og:image:altVersion Node.js v26.5.0 (Windows x64) process.config.variables: clang=1, enable_thin_lto=true, enable_lto=false, llvm_version=19.1.5 node-gyp 12.4.0 Visual Studio 2026 Insiders / MSVC (cl / link.ex...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamesteve02081504
hostnamegithub.com
expected-hostnamegithub.com
Nonee3e0f7f63e50c6fe879198a93a0a023a648ecc0a5e9bc3b5e033ac57172237e6
turbo-cache-controlno-preview
go-importgithub.com/nodejs/node git https://github.com/nodejs/node.git
octolytics-dimension-user_id9950313
octolytics-dimension-user_loginnodejs
octolytics-dimension-repository_id27193779
octolytics-dimension-repository_nwonodejs/node
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id27193779
octolytics-dimension-repository_network_root_nwonodejs/node
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release707a24b346ac8a82878b9c084efaa38a997660cb
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/nodejs/node/issues/64674#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F64674
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fnodejs%2Fnode%2Fissues%2F64674
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=nodejs%2Fnode
Reloadhttps://github.com/nodejs/node/issues/64674
Reloadhttps://github.com/nodejs/node/issues/64674
Reloadhttps://github.com/nodejs/node/issues/64674
nodejshttps://github.com/nodejs
nodehttps://github.com/nodejs/node
Codehttps://github.com/nodejs/node
Issues655 (655)https://github.com/nodejs/node/issues
Pull requests666 (666)https://github.com/nodejs/node/pulls
Actionshttps://github.com/nodejs/node/actions
Projectshttps://github.com/nodejs/node/projects
Security and qualityhttps://github.com/nodejs/node/security
Insightshttps://github.com/nodejs/node/pulse
https://github.com/nodejs/node
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64674
New issuehttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64674
Windows Node 26 enable_thin_lto=true breaks MSVC native addon builds (lldltojobs / -flto=thin)https://github.com/nodejs/node/issues/64674#top
https://github.com/steve02081504
steve02081504https://github.com/steve02081504
on Jul 22, 2026https://github.com/nodejs/node/issues/64674#issue-4948454734
https://github.com/steve02081504
steve02081504https://github.com/steve02081504
on Jul 22, 2026https://github.com/nodejs/node/issues/64674#issuecomment-5045275980
https://github.com/steve02081504/fount-p2phttps://github.com/steve02081504/fount-p2p
https://github.com/Archkon
Archkonhttps://github.com/Archkon
on Jul 22, 2026https://github.com/nodejs/node/issues/64674#issuecomment-5045915503
https://github.com/steve02081504
steve02081504https://github.com/steve02081504
on Jul 22, 2026https://github.com/nodejs/node/issues/64674#issuecomment-5048194380
nodejs/node-gyp#3331https://github.com/nodejs/node-gyp/pull/3331
https://github.com/steve02081504
steve02081504https://github.com/steve02081504
on Jul 22, 2026https://github.com/nodejs/node/issues/64674#issuecomment-5048204628
nodejs/node-gyp#3331https://github.com/nodejs/node-gyp/pull/3331
steve02081504https://github.com/steve02081504
completedhttps://github.com/nodejs/node/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
on Jul 22, 2026https://github.com/nodejs/node/issues/64674#event-28335000024
tugrulhttps://github.com/tugrul
on Jul 24, 2026https://github.com/nodejs/node/issues/64674#event-28435472698
Pin node-gyp for CI and drop the LTO flags Node 26 leaks into MSVChttps://github.com/tugrul/cryptian/commit/49c208dd3a5fbbe22573538dc7d98de1fb92ee5b
49c208dhttps://github.com/tugrul/cryptian/commit/49c208dd3a5fbbe22573538dc7d98de1fb92ee5b
ndoschekhttps://github.com/ndoschek
on Aug 24, 2026https://github.com/nodejs/node/issues/64674#event-29898307272
chore(deps): support Node.js 26 and drop Node.js 22https://github.com/eclipse-theia/theia/commit/b7fb82673adbe5c7a15bbc9189863c14ae353a5a
b7fb826https://github.com/eclipse-theia/theia/commit/b7fb82673adbe5c7a15bbc9189863c14ae353a5a
chore(deps): support Node.js 26 and drop Node.js 22https://github.com/eclipse-theia/theia/commit/fc4130137f7f50c4fd17883dab7ceb1589fa5f38
fc41301https://github.com/eclipse-theia/theia/commit/fc4130137f7f50c4fd17883dab7ceb1589fa5f38
chore(deps): support Node.js 26 and drop Node.js 22https://github.com/eclipse-theia/theia/commit/f1c0746c1191a571cc928b7d15759402cae0e2cd
f1c0746https://github.com/eclipse-theia/theia/commit/f1c0746c1191a571cc928b7d15759402cae0e2cd
ARyaskovhttps://github.com/ARyaskov
on Aug 27, 2026https://github.com/nodejs/node/issues/64674#event-30116929099
fix(ci): node-gyp 13 for Windows/Node 26, don't release cancelled runshttps://github.com/ARyaskov/mmap-io/commit/952469155bab8af975b62da68d60d94793d5f382
9524691https://github.com/ARyaskov/mmap-io/commit/952469155bab8af975b62da68d60d94793d5f382
v1.6.0 (#6)https://github.com/ARyaskov/mmap-io/commit/5356ced41818a0a8c3ac7c780bff446ed7bfedf8
#6https://github.com/ARyaskov/mmap-io/pull/6
5356cedhttps://github.com/ARyaskov/mmap-io/commit/5356ced41818a0a8c3ac7c780bff446ed7bfedf8
https://github.com/mmomtchev
mmomtchevhttps://github.com/mmomtchev
on Sep 18, 2026https://github.com/nodejs/node/issues/64674#issuecomment-5729302246
Sign up for freehttps://github.com/signup?return_to=https://github.com/nodejs/node/issues/64674
Sign in to commenthttps://github.com/login?return_to=https://github.com/nodejs/node/issues/64674
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.