aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
authorseyko <seyko2@gmail.com>2015-05-03 14:17:18 +0300
committerseyko <seyko2@gmail.com>2015-05-03 14:17:18 +0300
commit576aeb3aa933af4114cc2ca4e64794e85f528f0e (patch)
tree792eeeafd1dfe955b821429b19636e9e43ed8385 /tcc.c
parent2ba219f781a304112398cc37fb382c762a1c7cf4 (diff)
downloadtinycc-576aeb3aa933af4114cc2ca4e64794e85f528f0e.tar.gz
tinycc-576aeb3aa933af4114cc2ca4e64794e85f528f0e.tar.bz2
fix "tcc test.c -Wl,,--oformat,binary"
set linker options only when "s->output_type == TCC_OUTPUT_EXE" otherwise tcc will produce a wrong object file
Diffstat (limited to 'tcc.c')
-rw-r--r--tcc.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tcc.c b/tcc.c
index aacbd42..a0b1c70 100644
--- a/tcc.c
+++ b/tcc.c
@@ -264,9 +264,6 @@ int main(int argc, char **argv)
return 1;
}
- if (s->output_type == 0)
- s->output_type = TCC_OUTPUT_EXE;
-
if (s->option_m)
exec_other_tcc(s, argv, s->option_m);