Skip to content

Commit

Permalink
disable swiftinterface verification
Browse files Browse the repository at this point in the history
Summary:
When compiling with library evolution and emitting a swiftinterface file, the swift-driver will add module verification steps:
https://github.com/swiftlang/swift-driver/blob/072409a4c28c97dd4b08e70e1de14dac042ebc43/Sources/SwiftDriver/Jobs/Planning.swift#L592-L609

This is failing existing builds with errors like:
```
 4 | import Foundation
 5 | @_exported import MetaKit
   |                   `- error: underlying Objective-C module 'MetaKit' not found
```
Disable module verification for now, which matches the legacy driver behavior.

Reviewed By: drodriguez

Differential Revision: D68905282

fbshipit-source-id: f8b6fc2167b93ba3eb60af706144e2aef272990d
  • Loading branch information
rmaz authored and facebook-github-bot committed Jan 31, 2025
1 parent 01d30d6 commit 9fff5a9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions prelude/apple/swift/swift_compilation.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -543,6 +543,9 @@ def _compile_swiftmodule(
swift_framework_output.swiftinterface.as_output(),
"-emit-private-module-interface-path",
swift_framework_output.private_swiftinterface.as_output(),
# Module verification fails here as the clang modules
# are not loaded correctly.
"-no-verify-emitted-module-interface",
])

# There is no driver flag to specify the swiftdoc output path
Expand Down

0 comments on commit 9fff5a9

Please sign in to comment.