@@ -2523,12 +2523,10 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2523
2523
BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2524
2524
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2525
2525
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2526
- CMAKE_Swift_COMPILER_WORKS = " YES" ;
2527
2526
# TODO(compnerd) enforce dynamic linking of BlocksRuntime and dispatch.
2528
2527
CMAKE_CXX_FLAGS = $ (if ($Static ) { @ (" -Ddispatch_STATIC" ) } else { @ () });
2529
2528
CMAKE_Swift_FLAGS = $ (if ($Static ) { @ (" -Xcc" , " -static-libclosure" ) } else { @ () });
2530
2529
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2531
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2532
2530
2533
2531
# NOTE(compnerd) we can get away with this currently because we only
2534
2532
# use the C portion of the dispatch build, which is supposed to always
@@ -2550,9 +2548,7 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2550
2548
BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2551
2549
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2552
2550
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2553
- CMAKE_Swift_COMPILER_WORKS = " YES" ;
2554
2551
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2555
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2556
2552
2557
2553
SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2558
2554
}
@@ -2568,9 +2564,7 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2568
2564
BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2569
2565
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2570
2566
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2571
- CMAKE_Swift_COMPILER_WORKS = " YES" ;
2572
2567
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2573
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2574
2568
2575
2569
SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2576
2570
}
@@ -2586,9 +2580,7 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2586
2580
BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2587
2581
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2588
2582
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2589
- CMAKE_Swift_COMPILER_WORKS = " YES" ;
2590
2583
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2591
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2592
2584
2593
2585
SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2594
2586
SwiftOverlay_DIR = " ${OverlayBinaryCache} \cmake\SwiftOverlay" ;
@@ -2606,9 +2598,7 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2606
2598
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2607
2599
CMAKE_CXX_FLAGS = @ (" -I${RuntimeBinaryCache} \include" );
2608
2600
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2609
- CMAKE_Swift_COMPILER_WORKS = " YES" ;
2610
2601
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2611
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2612
2602
2613
2603
SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2614
2604
SwiftOverlay_DIR = " ${OverlayBinaryCache} \cmake\SwiftOverlay" ;
@@ -2626,9 +2616,7 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2626
2616
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2627
2617
CMAKE_CXX_FLAGS = @ (" -I${RuntimeBinaryCache} \include" );
2628
2618
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2629
- CMAKE_Swift_COMPILER_WORKS = " YES" ;
2630
2619
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2631
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2632
2620
2633
2621
SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2634
2622
SwiftOverlay_DIR = " ${OverlayBinaryCache} \cmake\SwiftOverlay" ;
@@ -2645,9 +2633,7 @@ function Build-ExperimentalRuntime([Hashtable] $Platform, [switch] $Static = $fa
2645
2633
BUILD_SHARED_LIBS = if ($Static ) { " NO" } else { " YES" };
2646
2634
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2647
2635
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2648
- CMAKE_Swift_COMPILER_WORKS = " YES" ;
2649
2636
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2650
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2651
2637
2652
2638
SwiftCore_DIR = " ${RuntimeBinaryCache} \cmake\SwiftCore" ;
2653
2639
SwiftOverlay_DIR = " ${OverlayBinaryCache} \cmake\SwiftOverlay" ;
@@ -2989,10 +2975,8 @@ function Build-ExperimentalSDK([Hashtable] $Platform) {
2989
2975
BUILD_SHARED_LIBS = " NO" ;
2990
2976
CMAKE_FIND_PACKAGE_PREFER_CONFIG = " YES" ;
2991
2977
CMAKE_Swift_COMPILER_TARGET = (Get-ModuleTriple $Platform );
2992
- CMAKE_Swift_COMPILER_WORKS = " YES" ;
2993
2978
CMAKE_Swift_FLAGS = @ (" -static-stdlib" , " -Xfrontend" , " -use-static-resource-dir" );
2994
2979
CMAKE_STATIC_LIBRARY_PREFIX_Swift = " lib" ;
2995
- CMAKE_SYSTEM_NAME = $Platform.OS.ToString ();
2996
2980
2997
2981
ENABLE_SWIFT = " YES" ;
2998
2982
}
0 commit comments