Skip to content

Commit bca88b2

Browse files
committed
support nosnapshot in vcbuild.bat
1 parent be67fa7 commit bca88b2

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

node.gyp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
'variables': {
3-
'v8_use_snapshot': 'true',
3+
'v8_use_snapshot%': 'true',
44
# Turn off -Werror in V8
55
# See http://codereview.chromium.org/8159015
66
'werror': '',

vcbuild.bat

+10
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ set target=Build
1717
set noprojgen=
1818
set nobuild=
1919
set nosign=
20+
set nosnapshot=
2021
set test=
2122
set test_args=
2223
set msi=
@@ -30,6 +31,7 @@ if /i "%1"=="clean" set target=Clean&goto arg-ok
3031
if /i "%1"=="noprojgen" set noprojgen=1&goto arg-ok
3132
if /i "%1"=="nobuild" set nobuild=1&goto arg-ok
3233
if /i "%1"=="nosign" set nosign=1&goto arg-ok
34+
if /i "%1"=="nosnapshot" set nosnapshot=1&goto arg-ok
3335
if /i "%1"=="test-uv" set test=test-uv&goto arg-ok
3436
if /i "%1"=="test-internet"set test=test-internet&goto arg-ok
3537
if /i "%1"=="test-pummel" set test=test-pummel&goto arg-ok
@@ -53,10 +55,18 @@ if defined upload goto upload
5355
if defined noprojgen goto msbuild
5456

5557
@rem Generate the VS project.
58+
if defined nosnapshot goto nosnapshotgen
5659
python tools\gyp_node -f msvs -G msvs_version=2010
5760
if errorlevel 1 goto create-msvs-files-failed
5861
if not exist node.sln goto create-msvs-files-failed
5962
echo Project files generated.
63+
goto msbuild
64+
65+
:nosnapshotgen
66+
python tools\gyp_node -f msvs -G msvs_version=2010 -D v8_use_snapshot='false'
67+
if errorlevel 1 goto create-msvs-files-failed
68+
if not exist node.sln goto create-msvs-files-failed
69+
echo Project files generated.
6070

6171
:msbuild
6272
@rem Skip project generation if requested.

0 commit comments

Comments
 (0)