Skip to content

Commit 5bcca25

Browse files
committed
[Windows] Teach Build-Testing how to Foundation
Pass `Foundation_DIR` to the cmake.
1 parent 9546d69 commit 5bcca25

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

utils/build.ps1

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

19161916
function Build-Testing([Platform]$Platform, $Arch, [switch]$Test = $false) {
1917+
$FoundationBinaryCache = Get-TargetProjectBinaryCache $Arch Foundation
19171918
$SwiftTestingBinaryCache = Get-TargetProjectBinaryCache $Arch Testing
19181919

19191920
Isolate-EnvVars {
@@ -1934,6 +1935,7 @@ function Build-Testing([Platform]$Platform, $Arch, [switch]$Test = $false) {
19341935
-Defines (@{
19351936
BUILD_SHARED_LIBS = "YES";
19361937
CMAKE_BUILD_WITH_INSTALL_RPATH = "YES";
1938+
Foundation_DIR = "$FoundationBinaryCache\cmake\modules";
19371939
SwiftSyntax_DIR = (Get-HostProjectCMakeModules Compilers);
19381940
SwiftTesting_MACRO = "$(Get-BuildProjectBinaryCache TestingMacros)\TestingMacros.dll";
19391941
})

0 commit comments

Comments
 (0)