@@ -32,6 +32,7 @@ set ltcg=
32
32
set target_env =
33
33
set noprojgen =
34
34
set projgen =
35
+ set clang_cl =
35
36
set nobuild =
36
37
set sign =
37
38
set nosnapshot =
@@ -87,6 +88,7 @@ if /i "%1"=="arm64" set target_arch=arm64&goto arg-ok
87
88
if /i " %1 " == " vs2022" set target_env = vs2022& goto arg-ok
88
89
if /i " %1 " == " noprojgen" set noprojgen = 1& goto arg-ok
89
90
if /i " %1 " == " projgen" set projgen = 1& goto arg-ok
91
+ if /i " %1 " == " clang-cl" set clang_cl = 1& goto arg-ok
90
92
if /i " %1 " == " nobuild" set nobuild = 1& goto arg-ok
91
93
if /i " %1 " == " nosign" set " sign = " & echo Note: vcbuild no longer signs by default. " nosign" is redundant.& goto arg-ok
92
94
if /i " %1 " == " sign" set sign = 1& goto arg-ok
@@ -190,6 +192,8 @@ if defined nosnapshot set configure_flags=%configure_flags% --without-snap
190
192
if defined nonpm set configure_flags = %configure_flags% --without-npm
191
193
if defined nocorepack set configure_flags = %configure_flags% --without-corepack
192
194
if defined ltcg set configure_flags = %configure_flags% --with-ltcg
195
+ :: If clang-cl build is requested, set it to 17.0, which is the version shipped with VS 2022.
196
+ if defined clang_cl set configure_flags = %configure_flags% --clang-cl=17.0
193
197
if defined release_urlbase set configure_flags = %configure_flags% --release-urlbase=%release_urlbase%
194
198
if defined download_arg set configure_flags = %configure_flags% %download_arg%
195
199
if defined enable_vtune_arg set configure_flags = %configure_flags% --enable-vtune-profiling
@@ -750,7 +754,7 @@ set exit_code=1
750
754
goto exit
751
755
752
756
:help
753
- echo vcbuild.bat [debug/release] [msi] [doc] [test/test-all/test-addons/test-doc/test-js-native-api/test-node-api/test-internet/test-tick-processor/test-known-issues/test-node-inspect/test-check-deopts/test-npm/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] [nonpm] [nocorepack] [ltcg] [licensetf] [sign] [ia32/x86/x64/arm64] [vs2022] [download-all] [enable-vtune] [lint/lint-ci/lint-js/lint-md] [lint-md-build] [format-md] [package] [build-release] [upload] [no-NODE-OPTIONS] [link-module path-to-module] [debug-http2] [debug-nghttp2] [clean] [cctest] [no-cctest] [openssl-no-asm]
757
+ echo vcbuild.bat [debug/release] [msi] [doc] [test/test-all/test-addons/test-doc/test-js-native-api/test-node-api/test-internet/test-tick-processor/test-known-issues/test-node-inspect/test-check-deopts/test-npm/test-v8/test-v8-intl/test-v8-benchmarks/test-v8-all] [ignore-flaky] [static/dll] [noprojgen] [projgen] [clang] [ small-icu/full-icu/without-intl] [nobuild] [nosnapshot] [nonpm] [nocorepack] [ltcg] [licensetf] [sign] [ia32/x86/x64/arm64] [vs2022] [download-all] [enable-vtune] [lint/lint-ci/lint-js/lint-md] [lint-md-build] [format-md] [package] [build-release] [upload] [no-NODE-OPTIONS] [link-module path-to-module] [debug-http2] [debug-nghttp2] [clean] [cctest] [no-cctest] [openssl-no-asm]
754
758
echo Examples:
755
759
echo vcbuild.bat : builds release build
756
760
echo vcbuild.bat debug : builds debug build
0 commit comments