@@ -643,6 +643,9 @@ enum Project {
643643 ClangRuntime
644644 SwiftInspect
645645 ExperimentalRuntime
646+ ExperimentalOverlay
647+ ExperimentalStringProcessing
648+ ExperimentalSynchronization
646649 StaticFoundation
647650}
648651
@@ -2276,9 +2279,61 @@ function Build-ExperimentalRuntime {
22762279 CMAKE_Swift_COMPILER_WORKS = " YES" ;
22772280 CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
22782281 CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2282+
2283+ # NOTE(compnerd) we can get away with this currently because we only
2284+ # use the C portion of the dispatch build, which is always built
2285+ # dynamically.
22792286 dispatch_DIR = (Get-ProjectCMakeModules $Platform Dispatch);
22802287 SwiftCore_ENABLE_CONCURRENCY = " YES" ;
22812288 }
2289+
2290+ Build-CMakeProject `
2291+ - Src $SourceCache \swift\Runtimes\Overlay `
2292+ - Bin (Get-ProjectBinaryCache $Platform ExperimentalOverlay) `
2293+ - InstallTo " $ ( Get-SwiftSDK $Platform.OS - Identifier " $ ( $Platform.OS ) Experimental" ) \usr" `
2294+ - Platform $Platform `
2295+ - UseBuiltCompilers C, CXX, Swift `
2296+ - UseGNUDriver `
2297+ - Defines @ {
2298+ BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2299+ CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2300+ CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2301+ CMAKE_Swift_COMPILER_WORKS = " YES" ;
2302+ CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2303+ CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2304+ }
2305+
2306+ Build-CMakeProject `
2307+ - Src $SourceCache \swift\Runtimes\Supplemental\StringProcessing `
2308+ - Bin (Get-ProjectBinaryCache $Platform ExperimentalStringProcessing) `
2309+ - InstallTo " $ ( Get-SwiftSDK $Platform.OS - Identifier " $ ( $Platform.OS ) Experimental" ) \usr" `
2310+ - Platform $Platform `
2311+ - UseBuiltCompilers C, Swift `
2312+ - UseGNUDriver `
2313+ - Defines @ {
2314+ BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2315+ CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2316+ CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2317+ CMAKE_Swift_COMPILER_WORKS = " YES" ;
2318+ CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2319+ CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2320+ }
2321+
2322+ Build-CMakeProject `
2323+ - Src $SourceCache \swift\Runtimes\Supplemental\Synchronization `
2324+ - Bin (Get-ProjectBinaryCache $Platform ExperimentalSynchronization) `
2325+ - InstallTo " $ ( Get-SwiftSDK $Platform.OS - Identifier " $ ( $Platform.OS ) Experimental" ) \usr" `
2326+ - Platform $Platform `
2327+ - UseBuiltCompilers C, Swift `
2328+ - UseGNUDriver `
2329+ - Defines @ {
2330+ BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2331+ CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2332+ CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2333+ CMAKE_Swift_COMPILER_WORKS = " YES" ;
2334+ CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2335+ CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2336+ }
22822337 }
22832338}
22842339
0 commit comments