diff --git a/utils/build.ps1 b/utils/build.ps1 index 13654f9b09643..ce34a8851faeb 100644 --- a/utils/build.ps1 +++ b/utils/build.ps1 @@ -1669,18 +1669,23 @@ function Build-Foundation([Platform]$Platform, $Arch, [switch]$Test = $false) { -Arch $HostArch } - # swift-corelibs-foundation tests are disabled since the package does not build for Windows yet - # $OutDir = Join-Path -Path $HostArch.BinaryCache -ChildPath foundation-tests - - # Isolate-EnvVars { - # $env:SWIFTCI_USE_LOCAL_DEPS=1 - # $env:DISPATCH_INCLUDE_PATH="$($Arch.SDKInstallRoot)/usr/lib/swift" - # Build-SPMProject ` - # -Test ` - # -Src $SourceCache\swift-corelibs-foundation ` - # -Bin $OutDir ` - # -Arch $HostArch - # } + $OutDir = Join-Path -Path $HostArch.BinaryCache -ChildPath foundation-tests + $ShortArch = $Arch.LLVMName + + Isolate-EnvVars { + $env:SWIFTCI_USE_LOCAL_DEPS=1 + $env:DISPATCH_INCLUDE_PATH="$($Arch.SDKInstallRoot)/usr/lib/swift" + $env:LIBXML_LIBRARY_PATH="$LibraryRoot/libxml2-2.11.5/usr/lib/$Platform/$ShortArch" + $env:LIBXML_INCLUDE_PATH="$LibraryRoot/libxml2-2.11.5/usr/include/libxml2" + $env:ZLIB_LIBRARY_PATH="$LibraryRoot/zlib-1.3.1/usr/lib/$Platform/$ShortArch" + $env:CURL_LIBRARY_PATH="$LibraryRoot/curl-8.9.1/usr/lib/$Platform/$ShortArch" + $env:CURL_INCLUDE_PATH="$LibraryRoot/curl-8.9.1/usr/include" + Build-SPMProject ` + -Test ` + -Src $SourceCache\swift-corelibs-foundation ` + -Bin $OutDir ` + -Arch $HostArch + } } else { $DispatchBinaryCache = Get-TargetProjectBinaryCache $Arch Dispatch $FoundationBinaryCache = Get-TargetProjectBinaryCache $Arch Foundation