@@ -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
}
@@ -2485,6 +2486,12 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2485
2486
throw " dynamic Experimental Differentiation is not yet implemented"
2486
2487
}
2487
2488
2489
+ $VolatileBinaryCache = if ($Static ) {
2490
+ Get-ProjectBinarycache $Platform ExperimentalStaticVolatile
2491
+ } else {
2492
+ throw " dynamic Experimental Volatile is not yet implemented"
2493
+ }
2494
+
2488
2495
Build-CMakeProject `
2489
2496
- Src $SourceCache \swift\Runtimes\Core `
2490
2497
- Bin $RuntimeBinaryCache `
@@ -2617,6 +2624,27 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2617
2624
SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2618
2625
SwiftOverlay_DIR = " ${OverlayBinaryCache} \cmake\SwiftOverlay" ;
2619
2626
}
2627
+
2628
+ Build-CMakeProject `
2629
+ - Src $SourceCache \swift\Runtimes\Supplemental\Volatile `
2630
+ - Bin $VolatileBinaryCache `
2631
+ - InstallTo " ${SDKROOT} \usr" `
2632
+ - Platform $Platform `
2633
+ - UseBuiltCompilers Swift `
2634
+ - SwiftSDK $null `
2635
+ - UseGNUDriver `
2636
+ - Defines @ {
2637
+ BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2638
+ CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2639
+ CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2640
+ CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2641
+
2642
+ SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2643
+ SwiftOverlay_DIR = " ${OverlayBinaryCache} \cmake\SwiftOverlay" ;
2644
+ # FIXME(compnerd) this currently causes a build failure on Windows, but
2645
+ # this should be enabled when building the dynamic runtime.
2646
+ SwiftVolatile_ENABLE_LIBRARY_EVOLUTION = " NO" ;
2647
+ }
2620
2648
}
2621
2649
}
2622
2650
0 commit comments