From b4883853e1fce1d31a916b0dba357be6a16b588a Mon Sep 17 00:00:00 2001 From: Leonard Grey Date: Tue, 28 Oct 2025 10:44:43 -0400 Subject: [PATCH] build.ps1: set SDKROOT when testing --- utils/build.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/build.ps1 b/utils/build.ps1 index 7ceab4733b689..2421869576287 100644 --- a/utils/build.ps1 +++ b/utils/build.ps1 @@ -2282,6 +2282,7 @@ function Build-Compilers([Hashtable] $Platform, [string] $Variant) { function Test-Compilers([Hashtable] $Platform, [string] $Variant, [switch] $TestClang, [switch] $TestLLD, [switch] $TestLLDB, [switch] $TestLLVM, [switch] $TestSwift) { Invoke-IsolatingEnvVars { $env:Path = "$(Get-CMarkBinaryCache $Platform)\src;$(Get-ProjectBinaryCache $BuildPlatform Compilers)\tools\swift\libdispatch-windows-$($Platform.Architecture.LLVMName)-prefix\bin;$(Get-ProjectBinaryCache $BuildPlatform Compilers)\bin;$env:Path;$VSInstallRoot\DIA SDK\bin\$($HostPlatform.Architecture.VSName);$UnixToolsBinDir" + $env:SDKROOT = (Get-SwiftSDK -OS $Platform.OS -Identifier $Platform.DefaultSDK) $TestingDefines = Get-CompilersDefines $Platform $Variant -Test if ($TestLLVM) { $Targets += @("check-llvm") } if ($TestClang) { $Targets += @("check-clang") }