@@ -711,6 +711,7 @@ enum Project {
711
711
ExperimentalOverlay
712
712
ExperimentalStringProcessing
713
713
ExperimentalSynchronization
714
+ ExperimentalDispatch
714
715
StaticFoundation
715
716
}
716
717
@@ -2736,6 +2737,29 @@ function Build-ExperimentalSDK([Hashtable] $Platform) {
2736
2737
# TODO(compnerd) we currently build the experimental SDK with just the static
2737
2738
# variant. We should aim to build both dynamic and static variants.
2738
2739
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
+
2739
2763
Invoke-BuildStep Build-Foundation $Platform - Static
2740
2764
}
2741
2765
0 commit comments