File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1610,12 +1610,14 @@ function Build-CMakeProject {
1610
1610
}
1611
1611
1612
1612
# The linker flags are shared across every language, and `/IGNORE:longsections` is an
1613
- # `lld-link.exe` argument, not `link.exe`, so this can only be enabled with the GNU
1614
- # driver, which guarantees we are using `lld-link.exe`.
1613
+ # `lld-link.exe` argument, not `link.exe`, so this can only be enabled when we use
1614
+ # `lld-link.exe` for linking .
1615
1615
# TODO: Investigate supporting fission with PE/COFF, this should avoid this warning.
1616
1616
if ($SwiftDebugFormat -eq " dwarf" ) {
1617
1617
if ($UseGNUDriver ) {
1618
1618
$LinkerFlags += @ (" -Xlinker" , " /IGNORE:longsections" )
1619
+ } elseif (-not $UseMSVCCompilers.Contains (" C" ) -and -not $UseMSVCCompilers.Contains (" CXX" )) {
1620
+ $LinkerFlags += @ (" /IGNORE:longsections" )
1619
1621
}
1620
1622
}
1621
1623
}
You can’t perform that action at this time.
0 commit comments