@@ -714,6 +714,7 @@ enum Project {
714
714
ExperimentalStaticDistributed
715
715
ExperimentalStaticObservation
716
716
ExperimentalStaticDifferentiation
717
+ ExperimentalStaticVolatile
717
718
ExperimentalStaticDispatch
718
719
ExperimentalStaticFoundation
719
720
}
@@ -2484,6 +2485,12 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2484
2485
throw " dynamic Experimental Differentiation is not yet implemented"
2485
2486
}
2486
2487
2488
+ $VolatileBinaryCache = if ($Static ) {
2489
+ Get-ProjectBinarycache $Platform ExperimentalStaticVolatile
2490
+ } else {
2491
+ throw " dynamic Experimental Volatile is not yet implemented"
2492
+ }
2493
+
2487
2494
Build-CMakeProject `
2488
2495
- Src $SourceCache \swift\Runtimes\Core `
2489
2496
- Bin $RuntimeBinaryCache `
@@ -2611,6 +2618,27 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2611
2618
SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2612
2619
SwiftOverlay_DIR = " ${OverlayBinaryCache} \cmake\SwiftOverlay" ;
2613
2620
}
2621
+
2622
+ Build-CMakeProject `
2623
+ - Src $SourceCache \swift\Runtimes\Supplemental\Volatile `
2624
+ - Bin $VolatileBinaryCache `
2625
+ - InstallTo " ${SDKROOT} \usr" `
2626
+ - Platform $Platform `
2627
+ - UseBuiltCompilers C, Swift `
2628
+ - SwiftSDK $null `
2629
+ - UseGNUDriver `
2630
+ - Defines @ {
2631
+ BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2632
+ CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2633
+ CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2634
+ CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2635
+
2636
+ SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2637
+ SwiftOverlay_DIR = " ${OverlayBinaryCache} \cmake\SwiftOverlay" ;
2638
+ # FIXME(compnerd) this currently causes a build failure on Windows, but
2639
+ # this should be enabled when building the dynamic runtime.
2640
+ SwiftVolatile_ENABLE_LIBRARY_EVOLUTION = " NO" ;
2641
+ }
2614
2642
}
2615
2643
}
2616
2644
0 commit comments