mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Revert "Frontend: Require explicit language mode when emitting swiftinterfaces."
This reverts commit 9067051c29.
This commit is contained in:
@@ -1040,8 +1040,10 @@ 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;
|
||||
Diags.diagnose({}, diag::error_module_interface_requires_language_mode)
|
||||
.limitBehavior(DiagnosticBehavior::Warning);
|
||||
// FIXME: Make this an error again (rdar://145168219)
|
||||
// HadError = true;
|
||||
}
|
||||
|
||||
if (auto A = Args.getLastArg(OPT_package_description_version)) {
|
||||
|
||||
Reference in New Issue
Block a user