Skip to content

Commit 9d4ebec

Browse files
committed
Turn off safeseh for lld.
Because lld has safeseh enabled by default and fails with a special icu data object file icudt69l_dat.obj. This fixes the X86 build.
1 parent c9b96d9 commit 9d4ebec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

build.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,10 @@ function Build-CMakeProject
429429
$SwiftArgs.Add("-Xlinker /INCREMENTAL:NO") | Out-Null
430430
$SwiftArgs.Add("-Xlinker /DEBUG:DWARF") | Out-Null
431431

432+
# Turn off safeseh for lld as it has safeseh enabled by default
433+
# and fails with an ICU data object file icudt69l_dat.obj.
434+
$SwiftArgs.Add("-Xlinker /SAFESEH:NO") | Out-Null
435+
432436
# Swift Requries COMDAT folding and de-duplication
433437
$SwiftArgs.Add("-Xlinker /OPT:REF") | Out-Null
434438
$SwiftArgs.Add("-Xlinker /OPT:ICF") | Out-Null

0 commit comments

Comments
 (0)