From ff0f9232aa77f14614a20631364f61fd53d0fb7d Mon Sep 17 00:00:00 2001 From: Rintaro Ishizaki Date: Mon, 16 Sep 2024 10:26:58 -0700 Subject: [PATCH] [Windows] Teach Build-Testing how to find Foundation Pass `Foundation_DIR` to the cmake. --- utils/build.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/utils/build.ps1 b/utils/build.ps1 index 47f28a021463f..8aff2fd674e47 100644 --- a/utils/build.ps1 +++ b/utils/build.ps1 @@ -1914,6 +1914,8 @@ function Build-XCTest([Platform]$Platform, $Arch, [switch]$Test = $false) { } function Build-Testing([Platform]$Platform, $Arch, [switch]$Test = $false) { + $DispatchBinaryCache = Get-TargetProjectBinaryCache $Arch Dispatch + $FoundationBinaryCache = Get-TargetProjectBinaryCache $Arch Foundation $SwiftTestingBinaryCache = Get-TargetProjectBinaryCache $Arch Testing Isolate-EnvVars { @@ -1934,6 +1936,8 @@ function Build-Testing([Platform]$Platform, $Arch, [switch]$Test = $false) { -Defines (@{ BUILD_SHARED_LIBS = "YES"; CMAKE_BUILD_WITH_INSTALL_RPATH = "YES"; + dispatch_DIR = "$DispatchBinaryCache\cmake\modules"; + Foundation_DIR = "$FoundationBinaryCache\cmake\modules"; SwiftSyntax_DIR = (Get-HostProjectCMakeModules Compilers); SwiftTesting_MACRO = "$(Get-BuildProjectBinaryCache TestingMacros)\TestingMacros.dll"; })