[xcodegen] Avoid emitting Swift Obj-C header

This isn't needed currently and works around
an assertion failure.
This commit is contained in:
Hamish Knight
2024-12-14 19:53:51 +00:00
parent 780a546646
commit 71eeb612f0
2 changed files with 8 additions and 0 deletions

View File

@@ -558,6 +558,13 @@ fileprivate final class ProjectGenerator {
buildSettings.common.DEFINES_MODULE = "YES"
}
// Disable the Obj-C bridging header; we don't currently use this, and
// even if we did, we'd probably want to use the one in the Ninja build
// folder.
// This also works around a compiler crash
// (https://github.com/swiftlang/swift/issues/78190).
buildSettings.common.SWIFT_OBJC_INTERFACE_HEADER_NAME = ""
if let last = buildArgs.takeFlagGroup(.O, .Onone) {
buildSettings.common.SWIFT_OPTIMIZATION_LEVEL = last.printed
}