Frontend: Temporarily downgrade 'error_module_interface_requires_language_mode'.

Downgrade the new error in https://github.com/swiftlang/swift/pull/84244 to a
warning.

The PR smoke test build is using a different build system that is failing to
pass `-swift-version` arguments when building various stdlib modules. That
needs to be fixed, but for now we also need to unblock CI.
This commit is contained in:
Allan Shortlidge
2025-09-15 13:56:24 -07:00
parent 01873c996f
commit e2c8235a2c
2 changed files with 6 additions and 4 deletions

View File

@@ -1035,8 +1035,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)) {