Skip to content

[build 4 windows] ninja build support 4 windows & enable more switch like use system shared library #52114

@congzhangzh

Description

@congzhangzh

What is the problem this feature will solve?

  1. build is hard and slow on Windows system, which does not support ccache when I develop node runtime.
  2. hard to build and publish to vcpkg & conda?

Guide I follow: https://github.com/nodejs/node/blob/main/BUILDING.mdthe

What is the feature you are proposing to solve the problem?

improve build process 4 windows, which use ninja build, this will

  1. make the build workflow the same across Windows & Linux & more.
  2. easy the build workflow with ccache to improve coding & debug loop of node runtime
  3. easy to publish to vcpkg

ref:

  1. https://github.com/medlab/daily-scripts-4-us/tree/main?tab=readme-ov-file#speed-you-windows-c-build-by-ccache-like-toolsimprove
  2. [New Port Request] nodejs microsoft/vcpkg#23027
  3. Node.js Feature Request: Embedded Host API & NativeWrapperGen Solution with Decorator and Tool Support & Infrastructure Change #51824
  4. https://github.com/ccache/ccache/wiki/MS-Visual-Studio (I add some tips here)

What alternatives have you considered?

Do some trick work to make ccache work with Visual Studio? but it's very hard, as the node has so many dependencies?

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature requestIssues that request new features to be added to Node.js.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions