@@ -2503,21 +2503,18 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2503
2503
Build-CMakeProject `
2504
2504
- Src $SourceCache \swift\Runtimes\Core `
2505
2505
- Bin $RuntimeBinaryCache `
2506
- - InstallTo " ${SDKROOT } \usr" `
2506
+ - InstallTo " ${SDKRoot } \usr" `
2507
2507
- Platform $Platform `
2508
2508
- UseBuiltCompilers C, CXX, Swift `
2509
2509
- UseGNUDriver `
2510
2510
- Defines @ {
2511
2511
BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2512
2512
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2513
2513
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2514
- CMAKE_Swift_COMPILER_WORKS = " YES" ;
2515
2514
# TODO(compnerd) enforce dynamic linking of BlocksRuntime and dispatch.
2516
2515
CMAKE_CXX_FLAGS = $ (if ($Static ) { @ (" -Ddispatch_STATIC" ) } else { @ () });
2517
2516
CMAKE_Swift_FLAGS = $ (if ($Static ) { @ (" -Xcc" , " -static-libclosure" ) } else { @ () });
2518
2517
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2519
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2520
- CMAKE_NINJA_FORCE_RESPONSE_FILE = " YES" ;
2521
2518
2522
2519
# NOTE(compnerd) we can get away with this currently because we only
2523
2520
# use the C portion of the dispatch build, which is supposed to always
@@ -2531,53 +2528,47 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2531
2528
Build-CMakeProject `
2532
2529
- Src $SourceCache \swift\Runtimes\Overlay `
2533
2530
- Bin $OverlayBinaryCache `
2534
- - InstallTo " ${SDKROOT } \usr" `
2531
+ - InstallTo " ${SDKRoot } \usr" `
2535
2532
- Platform $Platform `
2536
2533
- UseBuiltCompilers C, CXX, Swift `
2537
2534
- UseGNUDriver `
2538
2535
- Defines @ {
2539
2536
BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2540
2537
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2541
2538
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2542
- CMAKE_Swift_COMPILER_WORKS = " YES" ;
2543
2539
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2544
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2545
2540
2546
2541
SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2547
2542
}
2548
2543
2549
2544
Build-CMakeProject `
2550
2545
- Src $SourceCache \swift\Runtimes\Supplemental\StringProcessing `
2551
2546
- Bin $StringProcessingBinaryCache `
2552
- - InstallTo " ${SDKROOT } \usr" `
2547
+ - InstallTo " ${SDKRoot } \usr" `
2553
2548
- Platform $Platform `
2554
2549
- UseBuiltCompilers C, Swift `
2555
2550
- UseGNUDriver `
2556
2551
- Defines @ {
2557
2552
BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2558
2553
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2559
2554
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2560
- CMAKE_Swift_COMPILER_WORKS = " YES" ;
2561
2555
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2562
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2563
2556
2564
2557
SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2565
2558
}
2566
2559
2567
2560
Build-CMakeProject `
2568
2561
- Src $SourceCache \swift\Runtimes\Supplemental\Synchronization `
2569
2562
- Bin $SynchronizationBinaryCache `
2570
- - InstallTo " ${SDKROOT } \usr" `
2563
+ - InstallTo " ${SDKRoot } \usr" `
2571
2564
- Platform $Platform `
2572
2565
- UseBuiltCompilers C, Swift `
2573
2566
- UseGNUDriver `
2574
2567
- Defines @ {
2575
2568
BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2576
2569
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2577
2570
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2578
- CMAKE_Swift_COMPILER_WORKS = " YES" ;
2579
2571
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2580
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2581
2572
2582
2573
SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2583
2574
SwiftOverlay_DIR = " ${OverlayBinaryCache} \cmake\SwiftOverlay" ;
@@ -2586,7 +2577,7 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2586
2577
Build-CMakeProject `
2587
2578
- Src $SourceCache \swift\Runtimes\Supplemental\Distributed `
2588
2579
- Bin $DistributedBinaryCache `
2589
- - InstallTo " ${SDKROOT } \usr" `
2580
+ - InstallTo " ${SDKRoot } \usr" `
2590
2581
- Platform $Platform `
2591
2582
- UseBuiltCompilers C, CXX, Swift `
2592
2583
- UseGNUDriver `
@@ -2595,9 +2586,7 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2595
2586
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2596
2587
CMAKE_CXX_FLAGS = @ (" -I${RuntimeBinaryCache} \include" );
2597
2588
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2598
- CMAKE_Swift_COMPILER_WORKS = " YES" ;
2599
2589
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2600
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2601
2590
2602
2591
SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2603
2592
SwiftOverlay_DIR = " ${OverlayBinaryCache} \cmake\SwiftOverlay" ;
@@ -2606,7 +2595,7 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2606
2595
Build-CMakeProject `
2607
2596
- Src $SourceCache \swift\Runtimes\Supplemental\Observation `
2608
2597
- Bin $ObservationBinaryCache `
2609
- - InstallTo " ${SDKROOT } \usr" `
2598
+ - InstallTo " ${SDKRoot } \usr" `
2610
2599
- Platform $Platform `
2611
2600
- UseBuiltCompilers CXX, Swift `
2612
2601
- UseGNUDriver `
@@ -2615,9 +2604,7 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2615
2604
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2616
2605
CMAKE_CXX_FLAGS = @ (" -I${RuntimeBinaryCache} \include" );
2617
2606
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2618
- CMAKE_Swift_COMPILER_WORKS = " YES" ;
2619
2607
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2620
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2621
2608
2622
2609
SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2623
2610
SwiftOverlay_DIR = " ${OverlayBinaryCache} \cmake\SwiftOverlay" ;
@@ -2626,17 +2613,15 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2626
2613
Build-CMakeProject `
2627
2614
- Src $SourceCache \swift\Runtimes\Supplemental\Differentiation `
2628
2615
- Bin $DifferentiationBinaryCache `
2629
- - InstallTo " ${SDKROOT } \usr" `
2616
+ - InstallTo " ${SDKRoot } \usr" `
2630
2617
- Platform $Platform `
2631
2618
- UseBuiltCompilers C, CXX, Swift `
2632
2619
- UseGNUDriver `
2633
2620
- Defines @ {
2634
2621
BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2635
2622
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2636
2623
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2637
- CMAKE_Swift_COMPILER_WORKS = " YES" ;
2638
2624
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2639
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2640
2625
2641
2626
SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2642
2627
SwiftOverlay_DIR = " ${OverlayBinaryCache} \cmake\SwiftOverlay" ;
@@ -2978,10 +2963,8 @@ function Build-ExperimentalSDK([Hashtable] $Platform) {
2978
2963
BUILD_SHARED_LIBS = " NO" ;
2979
2964
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2980
2965
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2981
- CMAKE_Swift_COMPILER_WORKS = " YES" ;
2982
2966
CMAKE_Swift_FLAGS = @ (" -static-stdlib" , " -Xfrontend" , " -use-static-resource-dir" );
2983
2967
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2984
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2985
2968
2986
2969
ENABLE_SWIFT = " YES" ;
2987
2970
}
0 commit comments