@@ -134,7 +134,7 @@ if [!__PassThroughArgs!]==[] (
134134 set " __PassThroughArgs = %__PassThroughArgs% %1 "
135135)
136136
137- if /i " %1 " == " -hostos" (set __HostOS=%2 & shift& shift& goto Arg_Loop)
137+ if /i " %1 " == " -hostos" (set __HostOS=%2 & shift& shift& goto Arg_Loop)
138138if /i " %1 " == " -hostarch" (set __HostArch=%2 & shift& shift& goto Arg_Loop)
139139if /i " %1 " == " -os" (set __TargetOS=%2 & shift& shift& goto Arg_Loop)
140140if /i " %1 " == " -outputrid" (set __OutputRid=%2 & shift& shift& goto Arg_Loop)
@@ -400,9 +400,9 @@ if %__BuildNative% EQU 1 (
400400 )
401401
402402 set __ExtraCmakeArgs = !__ExtraCmakeArgs! %__CMakeArgs%
403-
404- echo Calling " %__RepoRootDir% \eng\native\gen-buildsys.cmd" " %__ProjectDir% " " %__IntermediatesDir% " %__VSVersion % %__HostArch% !__HostOS! !__ExtraCmakeArgs!
405- call " %__RepoRootDir% \eng\native\gen-buildsys.cmd" " %__ProjectDir% " " %__IntermediatesDir% " %__VSVersion % %__HostArch% !__HostOS! !__ExtraCmakeArgs!
403+
404+ echo Calling " %__RepoRootDir% \eng\native\gen-buildsys.cmd" " %__ProjectDir% " " %__IntermediatesDir% " %VisualStudioVersion % %__HostArch% !__HostOS! !__ExtraCmakeArgs!
405+ call " %__RepoRootDir% \eng\native\gen-buildsys.cmd" " %__ProjectDir% " " %__IntermediatesDir% " %VisualStudioVersion % %__HostArch% !__HostOS! !__ExtraCmakeArgs!
406406 if not !errorlevel! == 0 (
407407 echo %__ErrMsgPrefix%%__MsgPrefix% Error: failed to generate native component build project!
408408 goto ExitWithError
@@ -490,7 +490,7 @@ set /A __TotalSpecifiedTargetArch=__TargetArchX64 + __TargetArchX86 + __TargetAr
490490if %__TotalSpecifiedTargetArch% EQU 0 (
491491 REM Nothing specified means we want to build all architectures.
492492 set __TargetArchList = x64 x86 arm arm64
493-
493+
494494 if %__BuildAllJitsCommunity% == 1 (
495495 set __TargetArchList = %__TargetArchList% loongarch64 riscv64
496496 )
0 commit comments