mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #84244 from tshortli/require-swift-version-in-module-interfaces
Frontend: Require `-language-mode` option when emitting swiftinterfaces
This commit is contained in:
@@ -1034,6 +1034,9 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
}
|
||||
if (!isValid)
|
||||
diagnoseSwiftVersion(vers, A, Args, Diags);
|
||||
} else if (FrontendOpts.InputsAndOutputs.hasModuleInterfaceOutputPath()) {
|
||||
Diags.diagnose({}, diag::error_module_interface_requires_language_mode);
|
||||
HadError = true;
|
||||
}
|
||||
|
||||
if (auto A = Args.getLastArg(OPT_package_description_version)) {
|
||||
|
||||
Reference in New Issue
Block a user