Skip to content

Commit

Permalink
[Windows] Teach Build-Testing how to find Foundation
Browse files Browse the repository at this point in the history
Pass `Foundation_DIR` to the cmake.
  • Loading branch information
rintaro committed Sep 16, 2024
1 parent 9546d69 commit ff0f923
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions utils/build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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";
})
Expand Down

0 comments on commit ff0f923

Please sign in to comment.