@@ -2468,9 +2468,51 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2468
2468
Invoke-IsolatingEnvVars {
2469
2469
$env: Path = " $ ( Get-CMarkBinaryCache $Platform ) \src;$ ( Get-PinnedToolchainRuntime ) ;${env: Path} "
2470
2470
2471
+ $RuntimeBinaryCache = if ($Static ) {
2472
+ Get-ProjectBinaryCache $Platform ExperimentalStaticRuntime
2473
+ } else {
2474
+ throw " dynamic Experimental Runtime is not yet implemented"
2475
+ }
2476
+
2477
+ $OverlayBinaryCache = if ($Static ) {
2478
+ Get-ProjectBinaryCache $Platform ExperimentalStaticOverlay
2479
+ } else {
2480
+ throw " dynamic Experimental Runtime is not yet implemented"
2481
+ }
2482
+
2483
+ $StringProcessingBinaryCache = if ($Static ) {
2484
+ Get-ProjectBinarycache $Platform ExperimentalStaticStringProcessing
2485
+ } else {
2486
+ throw " dynamic Experimental Runtime is not yet implemented"
2487
+ }
2488
+
2489
+ $SynchronizationBinaryCache = if ($Static ) {
2490
+ Get-ProjectBinarycache $Platform ExperimentalStaticSynchronization
2491
+ } else {
2492
+ throw " dynamic Experimental Runtime is not yet implemented"
2493
+ }
2494
+
2495
+ $DistributedBinaryCache = if ($Static ) {
2496
+ Get-ProjectBinarycache $Platform ExperimentalStaticDistributed
2497
+ } else {
2498
+ throw " dynamic Experimental Runtime is not yet implemented"
2499
+ }
2500
+
2501
+ $ObservationBinaryCache = if ($Static ) {
2502
+ Get-ProjectBinarycache $Platform ExperimentalStaticObservation
2503
+ } else {
2504
+ throw " dynamic Experimental Runtime is not yet implemented"
2505
+ }
2506
+
2507
+ $DifferentiationBinaryCache = if ($Static ) {
2508
+ Get-ProjectBinarycache $Platform ExperimentalStaticDifferentiation
2509
+ } else {
2510
+ throw " dynamic Experimental Differentiation is not yet implemented"
2511
+ }
2512
+
2471
2513
Build-CMakeProject `
2472
2514
- Src $SourceCache \swift\Runtimes\Core `
2473
- - Bin ( Get-ProjectBinaryCache $Platform ExperimentalStaticRuntime) `
2515
+ - Bin $RuntimeBinaryCache `
2474
2516
- InstallTo " $ ( Get-SwiftSDK $Platform.OS - Identifier " $ ( $Platform.OS ) Experimental" ) \usr" `
2475
2517
- Platform $Platform `
2476
2518
- UseBuiltCompilers C, CXX, Swift `
@@ -2498,7 +2540,7 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2498
2540
2499
2541
Build-CMakeProject `
2500
2542
- Src $SourceCache \swift\Runtimes\Overlay `
2501
- - Bin ( Get-ProjectBinaryCache $Platform ExperimentalStaticOverlay) `
2543
+ - Bin $OverlayBinaryCache `
2502
2544
- InstallTo " $ ( Get-SwiftSDK $Platform.OS - Identifier " $ ( $Platform.OS ) Experimental" ) \usr" `
2503
2545
- Platform $Platform `
2504
2546
- UseBuiltCompilers C, CXX, Swift `
@@ -2511,12 +2553,12 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2511
2553
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2512
2554
CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2513
2555
2514
- SwiftCore_DIR = " $ ( Get-ProjectBinaryCache $Platform ExperimentalStaticRuntime ) \cmake\SwiftCore" ;
2556
+ SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2515
2557
}
2516
2558
2517
2559
Build-CMakeProject `
2518
2560
- Src $SourceCache \swift\Runtimes\Supplemental\StringProcessing `
2519
- - Bin ( Get-ProjectBinaryCache $Platform ExperimentalStaticStringProcessing) `
2561
+ - Bin $StringProcessingBinaryCache `
2520
2562
- InstallTo " $ ( Get-SwiftSDK $Platform.OS - Identifier " $ ( $Platform.OS ) Experimental" ) \usr" `
2521
2563
- Platform $Platform `
2522
2564
- UseBuiltCompilers C, Swift `
@@ -2529,12 +2571,12 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2529
2571
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2530
2572
CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2531
2573
2532
- SwiftCore_DIR = " $ ( Get-ProjectBinaryCache $Platform ExperimentalStaticRuntime ) \cmake\SwiftCore" ;
2574
+ SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2533
2575
}
2534
2576
2535
2577
Build-CMakeProject `
2536
2578
- Src $SourceCache \swift\Runtimes\Supplemental\Synchronization `
2537
- - Bin ( Get-ProjectBinaryCache $Platform ExperimentalStaticSynchronization) `
2579
+ - Bin $SynchronizationBinaryCache `
2538
2580
- InstallTo " $ ( Get-SwiftSDK $Platform.OS - Identifier " $ ( $Platform.OS ) Experimental" ) \usr" `
2539
2581
- Platform $Platform `
2540
2582
- UseBuiltCompilers C, Swift `
@@ -2547,53 +2589,53 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2547
2589
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2548
2590
CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2549
2591
2550
- SwiftCore_DIR = " $ ( Get-ProjectBinaryCache $Platform ExperimentalStaticRuntime ) \cmake\SwiftCore" ;
2551
- SwiftOverlay_DIR = " $ ( Get-ProjectBinaryCache $Platform ExperimentalStaticOverlay ) \cmake\SwiftOverlay" ;
2592
+ SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2593
+ SwiftOverlay_DIR = " ${OverlayBinaryCache} \cmake\SwiftOverlay" ;
2552
2594
}
2553
2595
2554
2596
Build-CMakeProject `
2555
2597
- Src $SourceCache \swift\Runtimes\Supplemental\Distributed `
2556
- - Bin ( Get-ProjectBinaryCache $Platform ExperimentalStaticDistributed) `
2598
+ - Bin $DistributedBinaryCache `
2557
2599
- InstallTo " $ ( Get-SwiftSDK $Platform.OS - Identifier " $ ( $Platform.OS ) Experimental" ) \usr" `
2558
2600
- Platform $Platform `
2559
2601
- UseBuiltCompilers C, CXX, Swift `
2560
2602
- UseGNUDriver `
2561
2603
- Defines @ {
2562
2604
BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2563
2605
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2564
- CMAKE_CXX_FLAGS = @ (" -I$ ( Get-ProjectBinaryCache $Platform ExperimentalStaticRuntime ) \include" );
2606
+ CMAKE_CXX_FLAGS = @ (" -I${RuntimeBinaryCache} \include" );
2565
2607
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2566
2608
CMAKE_Swift_COMPILER_WORKS = " YES" ;
2567
2609
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2568
2610
CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2569
2611
2570
- SwiftCore_DIR = " $ ( Get-ProjectBinaryCache $Platform ExperimentalStaticRuntime ) \cmake\SwiftCore" ;
2571
- SwiftOverlay_DIR = " $ ( Get-ProjectBinaryCache $Platform ExperimentalStaticOverlay ) \cmake\SwiftOverlay" ;
2612
+ SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2613
+ SwiftOverlay_DIR = " ${OverlayBinaryCache} \cmake\SwiftOverlay" ;
2572
2614
}
2573
2615
2574
2616
Build-CMakeProject `
2575
2617
- Src $SourceCache \swift\Runtimes\Supplemental\Observation `
2576
- - Bin ( Get-ProjectBinaryCache $Platform ExperimentalStaticObservation) `
2618
+ - Bin $ObservationBinaryCache `
2577
2619
- InstallTo " $ ( Get-SwiftSDK $Platform.OS - Identifier " $ ( $Platform.OS ) Experimental" ) \usr" `
2578
2620
- Platform $Platform `
2579
2621
- UseBuiltCompilers CXX, Swift `
2580
2622
- UseGNUDriver `
2581
2623
- Defines @ {
2582
2624
BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2583
2625
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2584
- CMAKE_CXX_FLAGS = @ (" -I$ ( Get-ProjectBinaryCache $Platform ExperimentalStaticRuntime ) \include" );
2626
+ CMAKE_CXX_FLAGS = @ (" -I${RuntimeBinaryCache} \include" );
2585
2627
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2586
2628
CMAKE_Swift_COMPILER_WORKS = " YES" ;
2587
2629
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2588
2630
CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2589
2631
2590
- SwiftCore_DIR = " $ ( Get-ProjectBinaryCache $Platform ExperimentalStaticRuntime ) \cmake\SwiftCore" ;
2591
- SwiftOverlay_DIR = " $ ( Get-ProjectBinaryCache $Platform ExperimentalStaticOverlay ) \cmake\SwiftOverlay" ;
2632
+ SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2633
+ SwiftOverlay_DIR = " ${OverlayBinaryCache} \cmake\SwiftOverlay" ;
2592
2634
}
2593
2635
2594
2636
Build-CMakeProject `
2595
2637
- Src $SourceCache \swift\Runtimes\Supplemental\Differentiation `
2596
- - Bin ( Get-ProjectBinaryCache $Platform ExperimentalStaticDifferentiation) `
2638
+ - Bin $DifferentiationBinaryCache `
2597
2639
- InstallTo " $ ( Get-SwiftSDK $Platform.OS - Identifier " $ ( $Platform.OS ) Experimental" ) \usr" `
2598
2640
- Platform $Platform `
2599
2641
- UseBuiltCompilers C, CXX, Swift `
@@ -2606,8 +2648,8 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2606
2648
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2607
2649
CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2608
2650
2609
- SwiftCore_DIR = " $ ( Get-ProjectBinaryCache $Platform ExperimentalStaticRuntime ) \cmake\SwiftCore" ;
2610
- SwiftOverlay_DIR = " $ ( Get-ProjectBinaryCache $Platform ExperimentalStaticOverlay ) \cmake\SwiftOverlay" ;
2651
+ SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2652
+ SwiftOverlay_DIR = " ${OverlayBinaryCache} \cmake\SwiftOverlay" ;
2611
2653
}
2612
2654
}
2613
2655
}
0 commit comments