| ... | ... | @@ -1144,14 +1144,15 @@ int main(int argc, char **argv) { |
| 1144 | 1144 | codegen_print_timing_report(g, stdout); |
| 1145 | 1145 | |
| 1146 | 1146 | if (cmd == CmdRun) { |
| 1147 | const char *exec_path = buf_ptr(&g->output_file_path); |
| 1147 | 1148 | ZigList<const char*> args = {0}; |
| 1149 | |
| 1150 | args.append(exec_path); |
| 1148 | 1151 | if (runtime_args_start != -1) { |
| 1149 | 1152 | for (int i = runtime_args_start; i < argc; ++i) { |
| 1150 | 1153 | args.append(argv[i]); |
| 1151 | 1154 | } |
| 1152 | 1155 | } |
| 1153 | | |
| 1154 | | const char *exec_path = buf_ptr(&g->output_file_path); |
| 1155 | 1156 | args.append(nullptr); |
| 1156 | 1157 | |
| 1157 | 1158 | os_execv(exec_path, args.items); |