We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 666e879 commit 13798d2Copy full SHA for 13798d2
src/main.cpp
@@ -1144,14 +1144,15 @@ int main(int argc, char **argv) {
1144
codegen_print_timing_report(g, stdout);
1145
1146
if (cmd == CmdRun) {
1147
+ const char *exec_path = buf_ptr(&g->output_file_path);
1148
ZigList<const char*> args = {0};
1149
+
1150
+ args.append(exec_path);
1151
if (runtime_args_start != -1) {
1152
for (int i = runtime_args_start; i < argc; ++i) {
1153
args.append(argv[i]);
1154
}
1155
-
- const char *exec_path = buf_ptr(&g->output_file_path);
1156
args.append(nullptr);
1157
1158
os_execv(exec_path, args.items);
0 commit comments