Skip to content

Commit

Permalink
disallow swift driver for interface compilation
Browse files Browse the repository at this point in the history
Summary: The swift-driver does not have the same behaviour as the legacy driver when presented with a single swiftinterface source. For now disallow the swift driver when compiling swiftinterface files.

Reviewed By: drodriguez

Differential Revision: D68650149

fbshipit-source-id: 48fea9d5205041f2d37a2e84ae740434729f1365
  • Loading branch information
rmaz authored and facebook-github-bot committed Jan 27, 2025
1 parent 2d98453 commit f6ccb63
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apple/swift/swift_compilation.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,9 @@ def _compile_swiftmodule(
"-Xfrontend",
"-compile-module-from-interface",
output_swiftinterface,
# The new driver will fail with "error: no input files"
# so use the legacy driver until we add functionality for this.
"-disallow-use-new-driver",
"-o",
output_swiftmodule.as_output(),
])
Expand Down

0 comments on commit f6ccb63

Please sign in to comment.