aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
authorMichael Matz <matz@suse.de>2017-07-16 21:03:25 +0200
committerMichael Matz <matz@suse.de>2017-07-16 21:03:25 +0200
commit3f13e33872aeac7d1363ac9bd01baad9f8a80764 (patch)
treefe295c77af66fcb184f103fca30649d12f872f13 /tcc.c
parent7f1ab9b1e111b9ea9261eec4b7c6fb0f42591eef (diff)
downloadtinycc-3f13e33872aeac7d1363ac9bd01baad9f8a80764.tar.gz
tinycc-3f13e33872aeac7d1363ac9bd01baad9f8a80764.tar.bz2
Fix cross compilers
Only native compilers support -run and hence the new -dT.
Diffstat (limited to 'tcc.c')
-rw-r--r--tcc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tcc.c b/tcc.c
index b502df1..769501f 100644
--- a/tcc.c
+++ b/tcc.c
@@ -282,8 +282,10 @@ redo:
n = s->nb_files;
if (n == 0)
tcc_error("no input files\n");
+#ifdef TCC_IS_NATIVE
if (s->do_test)
tcc_tool_test(s, argc, argv); /* maybe never returns */
+#endif
if (s->output_type == TCC_OUTPUT_PREPROCESS) {
if (!s->outfile) {