@@ -711,6 +711,7 @@ enum Project {
711711 ExperimentalOverlay
712712 ExperimentalStringProcessing
713713 ExperimentalSynchronization
714+ ExperimentalDispatch
714715 StaticFoundation
715716}
716717
@@ -2736,6 +2737,29 @@ function Build-ExperimentalSDK([Hashtable] $Platform) {
27362737 # TODO(compnerd) we currently build the experimental SDK with just the static
27372738 # variant. We should aim to build both dynamic and static variants.
27382739 Invoke-BuildStep Build-ExperimentalRuntime $Platform - Static
2740+
2741+ Invoke-IsolatingEnvVars {
2742+ $env: Path = " $ ( Get-CMarkBinaryCache $Platform ) \src;$ ( Get-PinnedToolchainRuntime ) ;${env: Path} "
2743+ Build-CMakeProject `
2744+ - Src $SourceCache \swift- corelibs- libdispatch `
2745+ - Bin (Get-ProjectBinaryCache $Platform ExperimentalDispatch) `
2746+ - InstallTo " $ ( Get-SwiftSDK $Platform.OS - Identifier " $ ( $Platform.OS ) Experimental" ) \usr" `
2747+ - Platform $Platform `
2748+ - UseBuiltCompilers C, CXX, Swift `
2749+ - SwiftSDK (Get-SwiftSDK $Platform.OS - Identifier " $ ( $Platform.OS ) Experimental" ) `
2750+ - Defines @ {
2751+ BUILD_SHARED_LIBS = " NO" ;
2752+ CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2753+ CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2754+ CMAKE_Swift_COMPILER_WORKS = " YES" ;
2755+ CMAKE_Swift_FLAGS = @ (" -static-stdlib" , " -Xfrontend" , " -use-static-resource-dir" );
2756+ CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2757+ CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2758+
2759+ ENABLE_SWIFT = " YES" ;
2760+ }
2761+ }
2762+
27392763 Invoke-BuildStep Build-Foundation $Platform - Static
27402764}
27412765
0 commit comments