mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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:
@@ -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)) {
|
||||
|
||||
Reference in New Issue
Block a user