mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[driver] Set the Immediate flag in -i or -repl modes.
This activates a special mode where code is also generated for input files. We don't really care about this for -i mode, but it makes -repl mode a bit nicer. Swift SVN r13044
This commit is contained in:
@@ -680,6 +680,11 @@ bool CompilerInvocation::parseArgs(ArrayRef<const char *> Args,
|
||||
return true;
|
||||
}
|
||||
|
||||
if (FrontendOpts.RequestedAction == FrontendOptions::REPL ||
|
||||
FrontendOpts.RequestedAction == FrontendOptions::Immediate) {
|
||||
setImmediate(true);
|
||||
}
|
||||
|
||||
if (ParseLangArgs(LangOpts, *ParsedArgs, Diags)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user