From 86764faa34d6097529e960e1e7bfcfad2f109aab Mon Sep 17 00:00:00 2001 From: Hiroshi Yamauchi Date: Mon, 3 Jul 2023 11:28:30 -0700 Subject: [PATCH] Add a build workaround for the swift-inspect release build swift-inspect will fail to build in release mode after the dump-arrays PR (https://github.com/apple/swift/pull/66973) due to an llvm bug (https://github.com/llvm/llvm-project/issues/40056). This is a workaround for it. --- build.ps1 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build.ps1 b/build.ps1 index b2b474416..c428b488d 100644 --- a/build.ps1 +++ b/build.ps1 @@ -1357,7 +1357,8 @@ function Build-Inspect() { -Src $SourceCache\swift\tools\swift-inspect ` -Bin $OutDir ` -Arch $HostArch ` - -Xcc "-I$($HostArch.SDKInstallRoot)\usr\include\swift\SwiftRemoteMirror" -Xlinker "$($HostArch.SDKInstallRoot)\usr\lib\swift\windows\$($HostArch.LLVMName)\swiftRemoteMirror.lib" + -Xcc "-I$($HostArch.SDKInstallRoot)\usr\include\swift\SwiftRemoteMirror" -Xlinker "$($HostArch.SDKInstallRoot)\usr\lib\swift\windows\$($HostArch.LLVMName)\swiftRemoteMirror.lib" ` + -Xcc -Xclang -Xcc -fno-split-cold-code # Workaround https://github.com/llvm/llvm-project/issues/40056 } function Build-Format() {