@@ -710,6 +710,7 @@ enum Project {
710
710
ExperimentalOverlay
711
711
ExperimentalStringProcessing
712
712
ExperimentalSynchronization
713
+ ExperimentalDispatch
713
714
StaticFoundation
714
715
}
715
716
@@ -2716,6 +2717,29 @@ function Build-ExperimentalSDK([Hashtable] $Platform) {
2716
2717
# TODO(compnerd) we currently build the experimental SDK with just the static
2717
2718
# variant. We should aim to build both dynamic and static variants.
2718
2719
Invoke-BuildStep Build-ExperimentalRuntime $Platform - Static
2720
+
2721
+ Invoke-IsolatingEnvVars {
2722
+ $env: Path = " $ ( Get-CMarkBinaryCache $Platform ) \src;$ ( Get-PinnedToolchainRuntime ) ;${env: Path} "
2723
+ Build-CMakeProject `
2724
+ - Src $SourceCache \swift- corelibs- libdispatch `
2725
+ - Bin (Get-ProjectBinaryCache $Platform ExperimentalDispatch) `
2726
+ - InstallTo " $ ( Get-SwiftSDK $Platform.OS - Identifier " $ ( $Platform.OS ) Experimental" ) \usr" `
2727
+ - Platform $Platform `
2728
+ - UseBuiltCompilers C, CXX, Swift `
2729
+ - SwiftSDK (Get-SwiftSDK $Platform.OS - Identifier " $ ( $Platform.OS ) Experimental" ) `
2730
+ - Defines @ {
2731
+ BUILD_SHARED_LIBS = " NO" ;
2732
+ CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2733
+ CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2734
+ CMAKE_Swift_COMPILER_WORKS = " YES" ;
2735
+ CMAKE_Swift_FLAGS = @ (" -static-stdlib" , " -Xfrontend" , " -use-static-resource-dir" );
2736
+ CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2737
+ CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2738
+
2739
+ ENABLE_SWIFT = " YES" ;
2740
+ }
2741
+ }
2742
+
2719
2743
Invoke-BuildStep Build-Foundation $Platform - Static
2720
2744
}
2721
2745
0 commit comments