Skip to content

Commit 2724fe3

Browse files
Tony RiceMylesBorins
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 48a923a commit 2724fe3

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
@@ -39,6 +39,7 @@ set enable_vtune_arg=
3939
set configure_flags=
4040
set build_addons=
4141
set dll=
42+
set enable_static=
4243

4344
:next-arg
4445
if "%1"=="" goto args-done
@@ -82,6 +83,7 @@ if /i "%1"=="download-all" set download_arg="--download=all"&goto arg-ok
8283
if /i "%1"=="ignore-flaky" set test_args=%test_args% --flaky-tests=dontcare&goto arg-ok
8384
if /i "%1"=="enable-vtune" set enable_vtune_arg=1&goto arg-ok
8485
if /i "%1"=="dll" set dll=1&goto arg-ok
86+
if /i "%1"=="static" set enable_static=1&goto arg-ok
8587

8688
echo Error: invalid command line option `%1`.
8789
exit /b 1
@@ -113,6 +115,7 @@ if defined release_urlbase set configure_flags=%configure_flags% --release-urlba
113115
if defined download_arg set configure_flags=%configure_flags% %download_arg%
114116
if defined enable_vtune_arg set configure_flags=%configure_flags% --enable-vtune-profiling
115117
if defined dll set configure_flags=%configure_flags% --shared
118+
if defined enable_static set configure_flags=%configure_flags% --enable-static
116119

117120
if "%i18n_arg%"=="full-icu" set configure_flags=%configure_flags% --with-intl=full-icu
118121
if "%i18n_arg%"=="small-icu" set configure_flags=%configure_flags% --with-intl=small-icu

0 commit comments

Comments
 (0)