Skip to content

Commit 9e9b3b4

Browse files
committed
recover from SIGABRT if swift symbolgraph-extract crashes
1 parent d447ca4 commit 9e9b3b4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Sources/SymbolGraphBuilder/Toolchains/SSGC.Toolchain.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -449,6 +449,14 @@ extension SSGC.Toolchain
449449
compiler; see https://github.com/apple/swift/issues/68767.
450450
""")
451451
}
452+
catch SystemProcessError.exit(134, _)
453+
{
454+
print("""
455+
Failed to dump symbols for module '\(id)' due to SIGABRT \
456+
from 'swift symbolgraph-extract'. This is a known bug in the Apple Swift \
457+
compiler; see https://github.com/swiftlang/swift/issues/75318.
458+
""")
459+
}
452460
catch SystemProcessError.exit(let code, let invocation)
453461
{
454462
throw SSGC.PackageBuildError.swift_symbolgraph_extract(code, invocation)

0 commit comments

Comments
 (0)