mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #68568 from apple/embedded-wmo-via-primaryfiles
[embedded] Detect WMO via .hasPrimaryInputs() instead of -wmo flag presence
This commit is contained in:
@@ -1331,7 +1331,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
|
||||
HadError = true;
|
||||
}
|
||||
|
||||
if (FrontendOpts.InputsAndOutputs.hasPrimaryInputs()) {
|
||||
if (!FrontendOpts.InputsAndOutputs.isWholeModule()) {
|
||||
Diags.diagnose(SourceLoc(), diag::wmo_with_embedded);
|
||||
HadError = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user