Windows support discussion
Hello, everyone. I was brought to this page by this comment on one of my PRs in the Node.js repo, as it was said that the change from there could be a problem for llnode. Later, I tried installing llnode from npm and building it from the source code but failed with both. Upon further investigation I found the other users faced the same issue, which was caused by the change in node-gyp some time ago. I've seen this discussion in node-gyp, but it didn't move past that.
Since this is my first time looking into llnode, I'll write the conclusions to which I came, that may or may not be true, but they should be a good starting point for discussion:
-
llnodehasn't been working on Windows for some time (node-gyp change that broke it landed in 2018, issue opened in 2019). - Changes in node-gyp are required to get it to work on Windows again (or a workaround)
- Prohibiting setting
ClangCLasPlatformToolsetin project file fromnode-gypshould not affectllnodeas it is already generating a.vcxprojfile without it on Windows, and then using options to setCLToolTool/Pathwhen building
Refs: https://github.com/nodejs/node/pull/55784 Refs: https://github.com/nodejs/llnode/issues/321 Refs: https://github.com/nodejs/node-gyp/pull/1164 Refs: https://github.com/nodejs/node-gyp/issues/3072
I have not been helping out with the maintenance of this repo for some time so it might not be accurate, but at least 1 and 3 look correct to me. Not quite sure about 2 since I am not very familiar with node-gyp on Windows in general.