File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -221,15 +221,16 @@ static int run_driver(StringRef ExecName,
221
221
assert (ExecName == " swift" );
222
222
subCommandArgs.push_back (" --driver-mode=swift" );
223
223
}
224
- subCommandArgs.insert (subCommandArgs.end (), argv.begin () + 1 , argv.end ());
225
-
226
224
// Push these non-op frontend arguments so the build log can indicate
227
225
// the new driver is used.
228
226
subCommandArgs.push_back (" -Xfrontend" );
229
227
subCommandArgs.push_back (" -new-driver-path" );
230
228
subCommandArgs.push_back (" -Xfrontend" );
231
229
subCommandArgs.push_back (NewDriverPath.c_str ());
232
230
231
+ // Push on the source program arguments
232
+ subCommandArgs.insert (subCommandArgs.end (), argv.begin () + 1 , argv.end ());
233
+
233
234
// Execute the subcommand.
234
235
subCommandArgs.push_back (nullptr );
235
236
ExecuteInPlace (NewDriverPath.c_str (), subCommandArgs.data ());
You can’t perform that action at this time.
0 commit comments