Skip to content

Commit cd13467

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 9d2af57 commit cd13467

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Frontend/CompilerInvocation.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,7 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
15751575
HadError = true;
15761576
}
15771577

1578-
if (!FrontendOpts.InputsAndOutputs.isWholeModule()) {
1578+
if (!FrontendOpts.InputsAndOutputs.isWholeModule() && FrontendOptions::doesActionGenerateSIL(FrontendOpts.RequestedAction)) {
15791579
Diags.diagnose(SourceLoc(), diag::wmo_with_embedded);
15801580
HadError = true;
15811581
}

0 commit comments

Comments
 (0)