Skip to content

Commit f78a3c7

Browse files
authored
Merge pull request #84326 from swiftlang/jepa-main4
[build-windows-toolchain.bat] Enable passing host arch name to build.ps1 through env var
2 parents 2bf0702 + a3019ed commit f78a3c7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

utils/build-windows-toolchain.bat

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,15 @@ if not "%SKIP_PACKAGING%"=="1" set "SkipPackagingArg= "
7373
set "WindowsSDKArchitecturesArg= "
7474
if not "%WINDOWS_SDKS%"=="" set "WindowsSDKArchitecturesArg=-WindowsSDKArchitectures %WINDOWS_SDKS%"
7575

76+
:: Build the -HostArchName argument, if any.
77+
set "HostArchNameArg="
78+
if not "%HOST_ARCH_NAME%"=="" set "HostArchNameArg=-HostArchName %HOST_ARCH_NAME%"
79+
7680
call :CloneRepositories || (exit /b 1)
7781

7882
:: We only have write access to BuildRoot, so use that as the image root.
7983
powershell.exe -ExecutionPolicy RemoteSigned -File %~dp0build.ps1 ^
84+
%HostArchName% ^
8085
-SourceCache %SourceRoot% ^
8186
-BinaryCache %BuildRoot% ^
8287
-ImageRoot %BuildRoot% ^

0 commit comments

Comments
 (0)