Skip to content

build, win: faster Release rebuilds

Sets Link Time Code Generation to INCREMENTAL, improving Release rebuilds speed. The /LTCG:INCREMENTAL was added in VS2015 and is not directly supported in gyp, thus it is implemented with AdditionalOptions. Some more information can be found in this vcblog post.

Adds exe-only option to vcbuild.bat, which will build only node.exe binary. It will skip building cctest, which takes as long as building node.exe itself.

Currently, on my box vcbuild rebuild takes 8 minutes. With those changes vcbuild exe-only takes only 1.5 minute.

Ref: https://github.com/nodejs/node/issues/17253

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • commit message follows commit guidelines
Affected core subsystem(s)

build

/cc @nodejs/build @nodejs/platform-windows

Merge request reports

Loading