@@ -16,6 +16,7 @@ set config=Release
16
16
set target = Build
17
17
set target_arch = x64
18
18
set ltcg =
19
+ set pch = 1
19
20
set target_env =
20
21
set noprojgen =
21
22
set projgen =
@@ -62,7 +63,7 @@ set doc=
62
63
:next-arg
63
64
if " %1 " == " " goto args-done
64
65
if /i " %1 " == " debug" set config = Debug& goto arg-ok
65
- if /i " %1 " == " release" set config = Release& set ltcg=1& goto arg-ok
66
+ if /i " %1 " == " release" set config = Release& set ltcg=1& set " pch= " & goto arg-ok
66
67
if /i " %1 " == " clean" set target = Clean& goto arg-ok
67
68
if /i " %1 " == " ia32" set target_arch = x86& goto arg-ok
68
69
if /i " %1 " == " x86" set target_arch = x86& goto arg-ok
@@ -77,6 +78,7 @@ if /i "%1"=="nosnapshot" set nosnapshot=1&goto arg-ok
77
78
if /i " %1 " == " noetw" set noetw = 1& goto arg-ok
78
79
if /i " %1 " == " noperfctr" set noperfctr = 1& goto arg-ok
79
80
if /i " %1 " == " ltcg" set ltcg = 1& goto arg-ok
81
+ if /i " %1 " == " nopch" set " pch = " & goto arg-ok
80
82
if /i " %1 " == " licensertf" set licensertf = 1& goto arg-ok
81
83
if /i " %1 " == " test" set test_args = %test_args% -J %common_test_suites% & set lint_cpp=1& set lint_js=1& set lint_md=1& goto arg-ok
82
84
if /i " %1 " == " test-ci" set test_args = %test_args% %test_ci_args% -p tap --logfile test.tap %common_test_suites% & set cctest_args=%cctest_args% --gtest_output=tap:cctest.tap& goto arg-ok
@@ -153,6 +155,7 @@ if defined build_release (
153
155
set i18n_arg = small-icu
154
156
set projgen = 1
155
157
set ltcg = 1
158
+ set " pch = "
156
159
)
157
160
158
161
:: assign path to node_exe
@@ -166,6 +169,7 @@ if defined nosnapshot set configure_flags=%configure_flags% --without-snap
166
169
if defined noetw set configure_flags = %configure_flags% --without-etw& set noetw_msi_arg = /p:NoETW=1
167
170
if defined noperfctr set configure_flags = %configure_flags% --without-perfctr& set noperfctr_msi_arg = /p:NoPerfCtr=1
168
171
if defined ltcg set configure_flags = %configure_flags% --with-ltcg
172
+ if defined pch set configure_flags = %configure_flags% --with-pch
169
173
if defined release_urlbase set configure_flags = %configure_flags% --release-urlbase=%release_urlbase%
170
174
if defined download_arg set configure_flags = %configure_flags% %download_arg%
171
175
if defined enable_vtune_arg set configure_flags = %configure_flags% --enable-vtune-profiling
@@ -669,7 +673,7 @@ del .used_configure_flags
669
673
goto exit
670
674
671
675
:help
672
- echo vcbuild.bat [debug/release] [msi] [doc] [test/test-ci/test-all/test-addons/test-addons-napi/test-internet/test-pummel/test-simple/test-message/test-gc/test-tick-processor/test-known-issues/test-node-inspect/test-check-deopts/test-npm/test-async-hooks/test-v8/test-v8-intl/test-v8-benchmarks/test-v8-all] [ignore-flaky] [static/dll] [noprojgen] [projgen] [small-icu/full-icu/without-intl] [nobuild] [nosnapshot] [noetw] [noperfctr] [ltcg] [licensetf] [sign] [ia32/x86/x64] [vs2017] [download-all] [enable-vtune] [lint/lint-ci/lint-js/lint-js-ci/lint-md] [lint-md-build] [package] [build-release] [upload] [no-NODE-OPTIONS] [link-module path-to-module] [debug-http2] [debug-nghttp2] [clean] [no-cctest] [openssl-no-asm]
676
+ echo vcbuild.bat [debug/release] [msi] [doc] [test/test-ci/test-all/test-addons/test-addons-napi/test-internet/test-pummel/test-simple/test-message/test-gc/test-tick-processor/test-known-issues/test-node-inspect/test-check-deopts/test-npm/test-async-hooks/test-v8/test-v8-intl/test-v8-benchmarks/test-v8-all] [ignore-flaky] [static/dll] [noprojgen] [projgen] [small-icu/full-icu/without-intl] [nobuild] [nosnapshot] [noetw] [noperfctr] [ltcg] [nopch] [ licensetf] [sign] [ia32/x86/x64] [vs2017] [download-all] [enable-vtune] [lint/lint-ci/lint-js/lint-js-ci/lint-md] [lint-md-build] [package] [build-release] [upload] [no-NODE-OPTIONS] [link-module path-to-module] [debug-http2] [debug-nghttp2] [clean] [no-cctest] [openssl-no-asm]
673
677
echo Examples:
674
678
echo vcbuild.bat : builds release build
675
679
echo vcbuild.bat debug : builds debug build
0 commit comments