From f607d85ceff2599ec354561e516c98cde2cab97a Mon Sep 17 00:00:00 2001 From: Tony Rice Date: Sun, 30 Apr 2017 12:07:37 -0500 Subject: [PATCH] build: add static option to vcbuild.bat Passes --enable-static to ./configure. PR-URL: https://github.com/nodejs/node/pull/12764 Reviewed-By: Refael Ackermann Reviewed-By: Anna Henningsen Reviewed-By: Gibson Fahnestock --- vcbuild.bat | 3 +++ 1 file changed, 3 insertions(+) diff --git a/vcbuild.bat b/vcbuild.bat index 569bb152bf0264..8089c37a24b2ee 100644 --- a/vcbuild.bat +++ b/vcbuild.bat @@ -39,6 +39,7 @@ set enable_vtune_arg= set configure_flags= set build_addons= set dll= +set enable_static= :next-arg if "%1"=="" goto args-done @@ -82,6 +83,7 @@ if /i "%1"=="download-all" set download_arg="--download=all"&goto arg-ok if /i "%1"=="ignore-flaky" set test_args=%test_args% --flaky-tests=dontcare&goto arg-ok if /i "%1"=="enable-vtune" set enable_vtune_arg=1&goto arg-ok if /i "%1"=="dll" set dll=1&goto arg-ok +if /i "%1"=="static" set enable_static=1&goto arg-ok echo Error: invalid command line option `%1`. exit /b 1 @@ -113,6 +115,7 @@ if defined release_urlbase set configure_flags=%configure_flags% --release-urlba if defined download_arg set configure_flags=%configure_flags% %download_arg% if defined enable_vtune_arg set configure_flags=%configure_flags% --enable-vtune-profiling if defined dll set configure_flags=%configure_flags% --shared +if defined enable_static set configure_flags=%configure_flags% --enable-static if "%i18n_arg%"=="full-icu" set configure_flags=%configure_flags% --with-intl=full-icu if "%i18n_arg%"=="small-icu" set configure_flags=%configure_flags% --with-intl=small-icu