Only native compilers support -run and hence the new -dT.
Unified · Split
| @@ -282,8 +282,10 @@ redo: · 281 unmodified lines | |||
| 282 | n = s->nb_files; | 282 | n = s->nb_files; |
| 283 | if (n == 0) | 283 | if (n == 0) |
| 284 | tcc_error("no input files\n"); | 284 | tcc_error("no input files\n"); |
| 285 | #ifdef TCC_IS_NATIVE | ||
| 285 | if (s->do_test) | 286 | if (s->do_test) |
| 286 | tcc_tool_test(s, argc, argv); /* maybe never returns */ | 287 | tcc_tool_test(s, argc, argv); /* maybe never returns */ |
| 288 | #endif | ||
| 287 | 289 | ||
| 288 | if (s->output_type == TCC_OUTPUT_PREPROCESS) { | 290 | if (s->output_type == TCC_OUTPUT_PREPROCESS) { |
| 289 | if (!s->outfile) { | 291 | if (!s->outfile) { |
| @@ -543,6 +543,7 @@ ST_FUNC void gen_makedeps(TCCState *s, const char *target, const char *filename) · 542 unmodified lines | |||
| 543 | fclose(depout); | 543 | fclose(depout); |
| 544 | } | 544 | } |
| 545 | 545 | ||
| 546 | #ifdef TCC_IS_NATIVE | ||
| 546 | /* -------------------------------------------------------------- */ | 547 | /* -------------------------------------------------------------- */ |
| 547 | /* run test snippets from file */ | 548 | /* run test snippets from file */ |
| 548 | 549 | ||
| @@ -647,5 +648,6 @@ ST_FUNC int tcc_tool_test(TCCState *s, int argc, char **argv) · 98 unmodified lines | |||
| 647 | tcc_free(buf); | 648 | tcc_free(buf); |
| 648 | exit(0); | 649 | exit(0); |
| 649 | } | 650 | } |
| 651 | #endif /* TCC_IS_NATIVE */ | ||
| 650 | 652 | ||
| 651 | /* -------------------------------------------------------------- */ | 653 | /* -------------------------------------------------------------- */ |