mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[xcodegen] Avoid emitting Swift Obj-C header
This isn't needed currently and works around an assertion failure.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user