[swift-update] Treat 'swift-update' as a symlink to the driver, instead of a separate executable.

This avoids having another copy of the frontend in the toolchain.

Swift SVN r24320
This commit is contained in:
Argyrios Kyrtzidis
2015-01-09 18:55:16 +00:00
parent a513e03680
commit e021f5077d
8 changed files with 80 additions and 67 deletions

View File

@@ -46,7 +46,7 @@ swift::driver::createCompilerInvocation(ArrayRef<const char *> ArgList,
Args.push_back("-force-single-frontend-invocation");
// Force the driver into batch mode by specifying "swiftc" as the name.
Driver TheDriver("swiftc", "swiftc", Diags);
Driver TheDriver("swiftc", "swiftc", Args, Diags);
// Don't check for the existence of input files, since the user of the
// CompilerInvocation may wish to remap inputs to source buffers.