diff --git a/utils/build.ps1 b/utils/build.ps1 index 0764b529f3533..9bf5481adcf29 100644 --- a/utils/build.ps1 +++ b/utils/build.ps1 @@ -711,6 +711,7 @@ enum Project { ExperimentalOverlay ExperimentalStringProcessing ExperimentalSynchronization + ExperimentalDistributed ExperimentalObservation ExperimentalDispatch StaticFoundation @@ -2428,6 +2429,26 @@ function Build-ExperimentalRuntime { SwiftOverlay_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalOverlay)\cmake\SwiftOverlay"; } + Build-CMakeProject ` + -Src $SourceCache\swift\Runtimes\Supplemental\Distributed ` + -Bin (Get-ProjectBinaryCache $Platform ExperimentalDistributed) ` + -InstallTo "$(Get-SwiftSDK $Platform.OS -Identifier "$($Platform.OS)Experimental")\usr" ` + -Platform $Platform ` + -UseBuiltCompilers C,CXX,Swift ` + -UseGNUDriver ` + -Defines @{ + BUILD_SHARED_LIBS = if ($Static) { "NO" } else { "YES" }; + CMAKE_FIND_PACKAGE_PREFER_CONFIG = "YES"; + CMAKE_CXX_FLAGS = @("-I$(Get-ProjectBinaryCache $Platform ExperimentalRuntime)\include"); + CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform); + CMAKE_Swift_COMPILER_WORKS = "YES"; + CMAKE_STATIC_LIBRARY_PREFIX_Swift = "lib"; + CMAKE_SYSTEM_NAME = $Platform.OS.ToString(); + + SwiftCore_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalRuntime)\cmake\SwiftCore"; + SwiftOverlay_DIR = "$(Get-ProjectBinaryCache $Platform ExperimentalOverlay)\cmake\SwiftOverlay"; + } + Build-CMakeProject ` -Src $SourceCache\swift\Runtimes\Supplemental\Observation ` -Bin (Get-ProjectBinaryCache $Platform ExperimentalObservation) `