File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -823,6 +823,15 @@ function Build-Foundation($Arch, [switch]$Test = $false)
823
823
$Targets = @ (" default" , " install" )
824
824
}
825
825
826
+ $SwiftFlags = " "
827
+ if ($Arch -eq $ArchX86 )
828
+ {
829
+ # Turn off safeseh for lld as it has safeseh enabled by default
830
+ # and fails with an ICU data object file icudt69l_dat.obj. This
831
+ # matters to X86 only.
832
+ $SwiftFlags = " -Xlinker /SAFESEH:NO"
833
+ }
834
+
826
835
$env: CTEST_OUTPUT_ON_FAILURE = 1
827
836
Build-CMakeProject `
828
837
- Src $SourceCache \swift- corelibs- foundation `
@@ -834,6 +843,7 @@ function Build-Foundation($Arch, [switch]$Test = $false)
834
843
CMAKE_INSTALL_PREFIX = " $ ( $Arch.SDKInstallRoot ) \usr" ;
835
844
CMAKE_SYSTEM_NAME = " Windows" ;
836
845
CMAKE_SYSTEM_PROCESSOR = $Arch.CMakeName ;
846
+ CMAKE_Swift_FLAGS = $SwiftFlags ;
837
847
CURL_DIR = " $LibraryRoot \curl-7.77.0\usr\lib\$ShortArch \cmake\CURL" ;
838
848
ICU_DATA_LIBRARY_RELEASE = " $LibraryRoot \icu-69.1\usr\lib\$ShortArch \sicudt69.lib" ;
839
849
ICU_I18N_LIBRARY_RELEASE = " $LibraryRoot \icu-69.1\usr\lib\$ShortArch \sicuin69.lib" ;
You can’t perform that action at this time.
0 commit comments