Skip to content

Commit 33b88b9

Browse files
authored
Merge pull request #76489 from rintaro/windows-testing-foundationdir
[Windows] Teach Build-Testing how to find Foundation
2 parents f1a6457 + ff0f923 commit 33b88b9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

utils/build.ps1

+4
Original file line numberDiff line numberDiff line change
@@ -1914,6 +1914,8 @@ function Build-XCTest([Platform]$Platform, $Arch, [switch]$Test = $false) {
19141914
}
19151915

19161916
function Build-Testing([Platform]$Platform, $Arch, [switch]$Test = $false) {
1917+
$DispatchBinaryCache = Get-TargetProjectBinaryCache $Arch Dispatch
1918+
$FoundationBinaryCache = Get-TargetProjectBinaryCache $Arch Foundation
19171919
$SwiftTestingBinaryCache = Get-TargetProjectBinaryCache $Arch Testing
19181920

19191921
Isolate-EnvVars {
@@ -1934,6 +1936,8 @@ function Build-Testing([Platform]$Platform, $Arch, [switch]$Test = $false) {
19341936
-Defines (@{
19351937
BUILD_SHARED_LIBS = "YES";
19361938
CMAKE_BUILD_WITH_INSTALL_RPATH = "YES";
1939+
dispatch_DIR = "$DispatchBinaryCache\cmake\modules";
1940+
Foundation_DIR = "$FoundationBinaryCache\cmake\modules";
19371941
SwiftSyntax_DIR = (Get-HostProjectCMakeModules Compilers);
19381942
SwiftTesting_MACRO = "$(Get-BuildProjectBinaryCache TestingMacros)\TestingMacros.dll";
19391943
})

0 commit comments

Comments
 (0)