diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp index a29c2700d23..8fc2ac5f078 100644 --- a/lib/Driver/Tools.cpp +++ b/lib/Driver/Tools.cpp @@ -118,6 +118,9 @@ std::unique_ptr 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) {