build: reconfigure when gyp files change on Windows

Previously only changes to .gypi files trigger a reconfigure
on Windows.

PR-URL: https://github.com/nodejs/node/pull/39066
Reviewed-By: Richard Lau <rlau@redhat.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
This commit is contained in:
Joyee Cheung 2021-06-18 03:47:06 +08:00 committed by Richard Lau
parent 4c2b813799
commit a657f250f1
No known key found for this signature in database
GPG Key ID: C43CEC45C17AB93C

View File

@ -333,7 +333,7 @@ if defined projgen goto run-configure
if not exist node.sln goto run-configure if not exist node.sln goto run-configure
if not exist .gyp_configure_stamp goto run-configure if not exist .gyp_configure_stamp goto run-configure
echo %configure_flags% > .tmp_gyp_configure_stamp echo %configure_flags% > .tmp_gyp_configure_stamp
where /R . /T *.gyp? >> .tmp_gyp_configure_stamp where /R . /T *.gyp* >> .tmp_gyp_configure_stamp
fc .gyp_configure_stamp .tmp_gyp_configure_stamp >NUL 2>&1 fc .gyp_configure_stamp .tmp_gyp_configure_stamp >NUL 2>&1
if errorlevel 1 goto run-configure if errorlevel 1 goto run-configure
@ -354,7 +354,7 @@ if not exist node.sln goto create-msvs-files-failed
set project_generated=1 set project_generated=1
echo Project files generated. echo Project files generated.
echo %configure_flags% > .gyp_configure_stamp echo %configure_flags% > .gyp_configure_stamp
where /R . /T *.gyp? >> .gyp_configure_stamp where /R . /T *.gyp* >> .gyp_configure_stamp
:msbuild :msbuild
@rem Skip build if requested. @rem Skip build if requested.