Skip to content

Replace node-cmake w/ CMake.js. Fix Windows Node.js build failure for Node.js v22+ (dropped x86 support)#7451

Merged
DennisOSRM merged 12 commits intomasterfrom
copilot/fix-missing-error-handling
Apr 8, 2026
Merged

Replace node-cmake w/ CMake.js. Fix Windows Node.js build failure for Node.js v22+ (dropped x86 support)#7451
DennisOSRM merged 12 commits intomasterfrom
copilot/fix-missing-error-handling

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 7, 2026

  • Fix macOS linking: add -undefined dynamic_lookup to node_osrm target on Apple platforms
  • Fix Windows /Wl,-z,origin: guard it to Linux-only (elseif(NOT WIN32))
  • Fix Windows node.lib path: always override CMAKE_JS_LIB with the locally-generated path on MSVC
  • Add RESULT_VARIABLE/ERROR_VARIABLE + FATAL_ERROR to print-cmakejs-lib fallback probe
  • Add RESULT_VARIABLE/ERROR_VARIABLE + FATAL_ERROR to print-cmakejs-src fallback probe
  • Update engines.node in package.json to ^20.17.0 || >=22.9.0 to align with cmake-js@^8

Copilot AI and others added 2 commits April 7, 2026 16:18
Copilot AI changed the title [WIP] Fix missing error handling for user inputs Fix Windows Node.js build failure for Node.js v22+ (dropped x86 support) Apr 7, 2026
Copilot AI requested a review from DennisOSRM April 7, 2026 16:20
Copilot AI and others added 3 commits April 7, 2026 16:40
…erated node.lib on MSVC

Agent-Logs-Url: https://github.com/Project-OSRM/osrm-backend/sessions/2d5446cd-c947-44a1-b4aa-64f500997857

Co-authored-by: DennisOSRM <1067895+DennisOSRM@users.noreply.github.com>
@DennisOSRM DennisOSRM marked this pull request as ready for review April 7, 2026 20:05
Copilot AI review requested due to automatic review settings April 7, 2026 20:05

This comment was marked as resolved.

@DennisOSRM
Copy link
Copy Markdown
Collaborator

@copilot apply changes based on the comments in this thread

…h cmake-js@^8 requirement

Agent-Logs-Url: https://github.com/Project-OSRM/osrm-backend/sessions/120b1d09-2070-4639-ba42-97b825f28ad8

Co-authored-by: DennisOSRM <1067895+DennisOSRM@users.noreply.github.com>

This comment was marked as resolved.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 5 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/nodejs/CMakeLists.txt Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@DennisOSRM DennisOSRM changed the title Fix Windows Node.js build failure for Node.js v22+ (dropped x86 support) Replace node-cmake w/ CMake.js. Fix Windows Node.js build failure for Node.js v22+ (dropped x86 support) Apr 8, 2026
@DennisOSRM DennisOSRM merged commit 567980e into master Apr 8, 2026
23 checks passed
@DennisOSRM DennisOSRM deleted the copilot/fix-missing-error-handling branch April 8, 2026 09:14
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.

3 participants