mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[frontend] Added a check to disallow the combination of -i and -primary-file.
Swift SVN r12524
This commit is contained in:
@@ -178,6 +178,12 @@ static bool ParseFrontendArgs(FrontendOptions &Opts, ArgList &Args,
|
||||
// TODO: emit diagnostic
|
||||
llvm::errs() << "error: REPL mode requires no input files\n";
|
||||
return true;
|
||||
} else if (Opts.RequestedAction == FrontendOptions::Immediate &&
|
||||
Opts.PrimaryInput.hasValue()) {
|
||||
// TODO: emit diagnostic
|
||||
llvm::errs() << "error: immediate mode is incompatible with -primary-file"
|
||||
<< '\n';
|
||||
return true;
|
||||
}
|
||||
|
||||
if (Args.hasArg(OPT_parse_sil) ||
|
||||
|
||||
Reference in New Issue
Block a user