tools: don't build node for doc build#9660
tools: don't build node for doc build#9660thefourtheye wants to merge 2 commits intonodejs:masterfrom
Conversation
Building node binary is not necessary for doc builds. Refer: nodejs#9436 (comment)
|
no comment on implementation, but +1 for the feature |
|
But it is required to run I'd be OK if you can replace the use of |
Ya, I have already started working on it. I'll update the PR soon. |
I tried so many things, but the last commit is the best I could come up with. I could use some help here @nodejs/build |
| out/doc/%: doc/% | ||
| cp -r $< $@ | ||
|
|
||
| GET_NODE := $(or $(shell [ -x ./node ] && echo ./node), $(shell command -v node)) |
There was a problem hiding this comment.
This is only used to find one for the purpose of printing an error and not actually using it. Note that $(NODE) is still invoked for gen-json and gen-html which could be different to ./node or command -v node.
It also may be prudent to use which in here rather than command (see the XZ check).
So, perhaps this check should be used to determine which node to invoke but it should default to testing for $(NODE) rather than ./node (since ./node is the default but it can be overridden at runtime, e.g. NODE=blergh make .... The final command/which is a nice fallback that should get us by but that needs to carry on down to the execution of gen-json and gen-html.
|
Status updates on this one? |
|
I think this has been resolved by introducing the |
Checklist
make -j8 test(UNIX), orvcbuild test nosign(Windows) passesAffected core subsystem(s)
build tools
Description of change
Building node binary is not necessary for doc builds.
Refer: #9436 (comment)
cc @silverwind