We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8b8e384 commit fd6184cCopy full SHA for fd6184c
jenkins/scripts/VersionSelectorScript.groovy
@@ -58,10 +58,9 @@ def buildExclusions = [
58
[ /vs2015(-\w+)?$/, testType, gte(18) ],
59
[ /vs2017(-\w+)?$/, testType, gte(18) ],
60
[ /vs2019(-\w+)?$/, testType, gte(21) ],
61
- [ /vs2022(-\w+)?$/, testType, lt(20) ], // Temporarily compile Node v20+ on both VS2019 and VS2022
62
- [ /vs2022-x86$/, testType, lt(20) ], // Temporarily compile Node v20+ arm64 and x86 on both VS2019 and VS2022
63
- [ /vs2022-x86$/, testType, gte(23) ],
64
- [ /vs2022-arm64$/, testType, lt(20) ],
+ [ /vs2022(-\w+)?$/, testType, lt(21) ],
+ [ /vs2022-x86$/, testType, gte(23) ], // x86 was dropped on Windows in v23
+ [ /vs2022_clang(-\w+)?$/, testType, lt(23) ], // ClangCL support was added in v23
65
[ /COMPILED_BY-\w+-arm64$/, testType, lt(20) ], // run tests on arm64 for >=19
66
// VS versions supported to build add-ons
67
[ /vs2015-COMPILED_BY/, testType, gte(20) ],
jenkins/scripts/windows/compile.cmd
@@ -4,8 +4,12 @@ if %NODEJS_MAJOR_VERSION% leq 12 set "PATH=C:\Python27\;C:\Python27\Scripts;%PAT
4
:: Opt-in for a generating binlog (work with code has https://github.com/nodejs/node/pull/26431/files)
5
set "msbuild_args=/binaryLogger:node.binlog"
6
7
+:: Check if compiler is ClangCL
8
+echo %nodes% | findstr /R "_clang" >nul
9
+set "not_clang=%errorlevel%"
10
+
11
:: Opt-in for a clcache
-if not defined DISABLE_CLCACHE if exist C:\clcache\dist\clcache_main\clcache_main.exe (
12
+if %not_clang% equ 1 if not defined DISABLE_CLCACHE if exist C:\clcache\dist\clcache_main\clcache_main.exe (
13
set CLCACHE_OBJECT_CACHE_TIMEOUT_MS=60000
14
set CLCACHE_BASEDIR="%WORKSPACE%"
15
set CLCACHE_HARDLINK=1
@@ -50,6 +54,9 @@ if "%nodes:~-6%" == "-arm64" (
50
54
) else (
51
55
set "VCBUILD_EXTRA_ARGS=x64 %VCBUILD_EXTRA_ARGS%"
52
56
)
57
+if %not_clang% equ 0 (
+ set "VCBUILD_EXTRA_ARGS=%VCBUILD_EXTRA_ARGS% clang-cl"
+)
53
set DEBUG_HELPER=1
call vcbuild.bat %VCBUILD_EXTRA_ARGS%
if errorlevel 1 exit /b
0 commit comments