Skip to content

[4.2] [Serialization] Fix message for using an older compiler's module file #17474

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

jrose-apple
Copy link
Contributor

Cherry-pick of #17340 to the 4.2 branch. Reviewed by @graydon.

…swiftlang#17340)

Previously: "module compiled with Swift 4.1 cannot be imported in Swift
4.1.50" (i.e. following the -swift-version flag)

Now: "module compiled with Swift 4.1 cannot be imported by the Swift
4.2 compiler"

I'm pretty sure this is what I intended to do all along, and I just
messed it up when I originally implemented it. This is especially
important when working with downloadable toolchains, which would say
"module compiled with Swift 4.2 cannot be imported in Swift 4.1.50",
which is not really the problem at all. Now it'll fall back to the
more generic "module file was created by an older version of the
compiler" error.

(cherry picked from commit 2c40c6b)
@jrose-apple jrose-apple changed the title [Serialization] Fix message for using an older compiler's module file [4.2] [Serialization] Fix message for using an older compiler's module file Jun 25, 2018
@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@jrose-apple jrose-apple merged commit 177b606 into swiftlang:swift-4.2-branch Jun 25, 2018
@jrose-apple jrose-apple deleted the 4.2-ineffective-version branch June 25, 2018 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant