History

Fix cross compilers

Only native compilers support -run and hence the new -dT.

Michael Matz committed 9 years ago

Commit 3f13e331 parent 7f1ab9b2 files · +4 −0Browse files

Unified · Split

2 files
  1. tcc.c +2 −0
  2. tcctools.c +2 −0
tcc.c+2−0
@@ -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) {
tcctools.c+2−0
@@ -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/* -------------------------------------------------------------- */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t