Skip to content

Commit aaa2085

Browse files
committed
Allow enabling embedded Swift without WMO when not generating SIL
This allows modes like -index-file to work the same way they do when not using embedded Swift
1 parent f08f86c commit aaa2085

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1379,7 +1379,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
13791379
HadError = true;
13801380
}
13811381

1382-
if (!FrontendOpts.InputsAndOutputs.isWholeModule()) {
1382+
if (!FrontendOpts.InputsAndOutputs.isWholeModule() && FrontendOptions::doesActionGenerateSIL(FrontendOpts.RequestedAction)) {
13831383
Diags.diagnose(SourceLoc(), diag::wmo_with_embedded);
13841384
HadError = true;
13851385
}

0 commit comments

Comments
 (0)