Skip to content

Commit e488857

Browse files
Tony Riceaddaleax
Tony Rice
authored andcommitted
build: add static option to vcbuild.bat
Passes --enable-static to ./configure. PR-URL: #12764 Reviewed-By: Refael Ackermann <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Gibson Fahnestock <[email protected]>
1 parent d6a6bcd commit e488857

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vcbuild.bat

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ set enable_vtune_arg=
4040
set configure_flags=
4141
set build_addons=
4242
set dll=
43+
set enable_static=
4344
set build_addons_napi=
4445
set test_node_inspect=
4546
set test_check_deopts=
@@ -92,6 +93,7 @@ if /i "%1"=="download-all" set download_arg="--download=all"&goto arg-ok
9293
if /i "%1"=="ignore-flaky" set test_args=%test_args% --flaky-tests=dontcare&goto arg-ok
9394
if /i "%1"=="enable-vtune" set enable_vtune_arg=1&goto arg-ok
9495
if /i "%1"=="dll" set dll=1&goto arg-ok
96+
if /i "%1"=="static" set enable_static=1&goto arg-ok
9597
if /i "%1"=="no-NODE-OPTIONS" set no_NODE_OPTIONS=1&goto arg-ok
9698

9799
echo Error: invalid command line option `%1`.
@@ -124,6 +126,7 @@ if defined release_urlbase set configure_flags=%configure_flags% --release-urlba
124126
if defined download_arg set configure_flags=%configure_flags% %download_arg%
125127
if defined enable_vtune_arg set configure_flags=%configure_flags% --enable-vtune-profiling
126128
if defined dll set configure_flags=%configure_flags% --shared
129+
if defined enable_static set configure_flags=%configure_flags% --enable-static
127130
if defined no_NODE_OPTIONS set configure_flags=%configure_flags% --without-node-options
128131

129132
if "%i18n_arg%"=="full-icu" set configure_flags=%configure_flags% --with-intl=full-icu

0 commit comments

Comments
 (0)