Skip to content

Commit b26f899

Browse files
authored
Add a build workaround for the swift-inspect release build (#587)
swift-inspect will fail to build in release mode after the dump-arrays PR (swiftlang/swift#66973) due to an llvm bug (llvm/llvm-project#40056). This is a workaround for it.
1 parent 693303d commit b26f899

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

build.ps1

+2-1
Original file line numberDiff line numberDiff line change
@@ -1357,7 +1357,8 @@ function Build-Inspect() {
13571357
-Src $SourceCache\swift\tools\swift-inspect `
13581358
-Bin $OutDir `
13591359
-Arch $HostArch `
1360-
-Xcc "-I$($HostArch.SDKInstallRoot)\usr\include\swift\SwiftRemoteMirror" -Xlinker "$($HostArch.SDKInstallRoot)\usr\lib\swift\windows\$($HostArch.LLVMName)\swiftRemoteMirror.lib"
1360+
-Xcc "-I$($HostArch.SDKInstallRoot)\usr\include\swift\SwiftRemoteMirror" -Xlinker "$($HostArch.SDKInstallRoot)\usr\lib\swift\windows\$($HostArch.LLVMName)\swiftRemoteMirror.lib" `
1361+
-Xcc -Xclang -Xcc -fno-split-cold-code # Workaround https://github.com/llvm/llvm-project/issues/40056
13611362
}
13621363

13631364
function Build-Format() {

0 commit comments

Comments
 (0)