Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
congzhangzh opened this issue Mar 16, 2024 · 1 comment
Labels
feature request Issues that request new features to be added to Node.js.

Comments

@congzhangzh
Copy link
Contributor

congzhangzh commented Mar 16, 2024

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?

@congzhangzh congzhangzh added the feature request Issues that request new features to be added to Node.js. label Mar 16, 2024
@congzhangzh
Copy link
Contributor Author

Other has already some work in progress, cool:

#51689
#51676
https://github.com/nodejs/node/blob/main/doc/contributing/gn-build.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to Node.js.
Projects
None yet
Development

No branches or pull requests

1 participant