[driver] Add support for passing -parse-as-library and -parse-stdlib to the frontend.

Swift SVN r12172
This commit is contained in:
Connor Wakamo
2014-01-11 00:33:29 +00:00
parent a7460947bd
commit 86fe23de29

View File

@@ -118,6 +118,9 @@ std::unique_ptr<Job> Swift::constructJob(const JobAction &JA,
// Pass through the values passed to -Xfrontend.
Args.AddAllArgValues(Arguments, options::OPT_Xfrontend);
Args.AddLastArg(Arguments, options::OPT_parse_as_library);
Args.AddLastArg(Arguments, options::OPT_parse_stdlib);
// Add the output file argument if necessary.
if (Output->getType() != types::TY_Nothing) {