Fix cross compilers
Only native compilers support -run and hence the new -dT.
This commit is contained in:
parent
7f1ab9b1e1
commit
3f13e33872
2 changed files with 4 additions and 0 deletions
2
tcc.c
2
tcc.c
|
@ -282,8 +282,10 @@ redo:
|
||||||
n = s->nb_files;
|
n = s->nb_files;
|
||||||
if (n == 0)
|
if (n == 0)
|
||||||
tcc_error("no input files\n");
|
tcc_error("no input files\n");
|
||||||
|
#ifdef TCC_IS_NATIVE
|
||||||
if (s->do_test)
|
if (s->do_test)
|
||||||
tcc_tool_test(s, argc, argv); /* maybe never returns */
|
tcc_tool_test(s, argc, argv); /* maybe never returns */
|
||||||
|
#endif
|
||||||
|
|
||||||
if (s->output_type == TCC_OUTPUT_PREPROCESS) {
|
if (s->output_type == TCC_OUTPUT_PREPROCESS) {
|
||||||
if (!s->outfile) {
|
if (!s->outfile) {
|
||||||
|
|
|
@ -543,6 +543,7 @@ ST_FUNC void gen_makedeps(TCCState *s, const char *target, const char *filename)
|
||||||
fclose(depout);
|
fclose(depout);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef TCC_IS_NATIVE
|
||||||
/* -------------------------------------------------------------- */
|
/* -------------------------------------------------------------- */
|
||||||
/* run test snippets from file */
|
/* run test snippets from file */
|
||||||
|
|
||||||
|
@ -647,5 +648,6 @@ ST_FUNC int tcc_tool_test(TCCState *s, int argc, char **argv)
|
||||||
tcc_free(buf);
|
tcc_free(buf);
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
|
#endif /* TCC_IS_NATIVE */
|
||||||
|
|
||||||
/* -------------------------------------------------------------- */
|
/* -------------------------------------------------------------- */
|
||||||
|
|
Loading…
Reference in a new issue