Skip to content

Commit 867928d

Browse files
authored
Merge pull request #83174 from compnerd/distributed-build
utils: add Distributed to the experimental Windows SDK
2 parents f40d3b4 + 21533c6 commit 867928d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

utils/build.ps1

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -711,6 +711,7 @@ enum Project {
711711
ExperimentalOverlay
712712
ExperimentalStringProcessing
713713
ExperimentalSynchronization
714+
ExperimentalDistributed
714715
ExperimentalObservation
715716
ExperimentalDispatch
716717
StaticFoundation
@@ -2428,6 +2429,26 @@ function Build-ExperimentalRuntime {
24282429
SwiftOverlay_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalOverlay)\cmake\SwiftOverlay";
24292430
}
24302431

2432+
Build-CMakeProject `
2433+
-Src $SourceCache\swift\Runtimes\Supplemental\Distributed `
2434+
-Bin (Get-ProjectBinaryCache $Platform ExperimentalDistributed) `
2435+
-InstallTo "$(Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental")\usr" `
2436+
-Platform $Platform `
2437+
-UseBuiltCompilers C,CXX,Swift `
2438+
-UseGNUDriver `
2439+
-Defines @{
2440+
BUILD_SHARED_LIBS = if ($Static) { "NO" } else { "YES" };
2441+
CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES";
2442+
CMAKE_CXX_FLAGS = @("-I$(Get-ProjectBinaryCache $Platform ExperimentalRuntime)\include");
2443+
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform);
2444+
CMAKE_Swift_COMPILER_WORKS = "YES";
2445+
CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib";
2446+
CMAKE_SYSTEM_NAME = $Platform.OS.ToString();
2447+
2448+
SwiftCore_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalRuntime)\cmake\SwiftCore";
2449+
SwiftOverlay_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalOverlay)\cmake\SwiftOverlay";
2450+
}
2451+
24312452
Build-CMakeProject `
24322453
-Src $SourceCache\swift\Runtimes\Supplemental\Observation `
24332454
-Bin (Get-ProjectBinaryCache $Platform ExperimentalObservation) `

0 commit comments

Comments
 (0)