-
Notifications
You must be signed in to change notification settings - Fork 30.3k
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
deps: cherry-pick 88260bf from node-gyp upstream #56073
Conversation
This change cherry-picks a small change from node-gyp needed for running native tests on ClangCL compiled binaries. Refs: nodejs/node-gyp#3098
Review requested:
|
Fast-track has been requested by @StefanStojanovic. Please 👍 to approve. |
Let's release nodejs/node-gyp#3050 as well! |
Since this is located in the |
Correct. It looks like |
Yes, just noticed that the publish workflow was not working. Fixing at nodejs/node-gyp#3099 |
I understand the concern and it is completely valid. Any idea on the ETA of node-gyp v10.3,0 making its way into the Node.js project (so full journey, node-gyp release, npm update, npm release, and node update)? Regarding the change itself, although it is not a good practice to get it this way, it would not break anything, as using Clang is AFAIK not supported on Windows anyway, so IMHO this is not risky (although it is a dirty solution). Knowing an ETA on this would be helpful. |
https://www.npmjs.com/package/node-gyp/v/10.3.1 is published |
I can't speak to the full timeline but do want to point out that #56135 has landed which contains the change from this PR. So the only step remaining is the node update which I think means this PR can be closed now. |
This change cherry-picks a small change from node-gyp needed for running native tests on ClangCL compiled binaries. The change was already approved here, so this is just the official port after the changes landed in node-gyp. Next is the part of the description regarding this change from the original PR:
Enforce MSVC to be used for node-gyp. As far as I can tell, this is the intended way of using node-gyp on Windows. The issue with running the native suites is that now we use Clang to compile Node.js, so config.variables.clang is set to 1, which makes node-gyp generate project files for ClangCL. While we'd like to enable this, that is currently not the priority so for now enforcing MSVC would be the way to go the way I see it. The changes in create-config-gypi.js would be done as a PR in node-gyp and then floated in Node.js until the next node-gyp update.
Tagging relative teams: @nodejs/platform-windows @nodejs/node-gyp
P.S. Since it's already reviewed, I'll request fast-tracking and I'm planning to land it after the first approval.
Refs: nodejs/node-gyp#3098
Refs: #55784