From 643a1b8848d3d9cb703a7561c7f89191e8511cf1 Mon Sep 17 00:00:00 2001 From: grischka Date: Sat, 1 Oct 2016 21:52:11 +0200 Subject: tcc -E: add one space in cases: tiny solution replaces f5f82abc99424c4ece836000934fcf57a867c635 Also: fix tcc flags in Makefile, fix tcc -E --- tcc.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tcc.c') diff --git a/tcc.c b/tcc.c index 35680ec..ab9b907 100644 --- a/tcc.c +++ b/tcc.c @@ -331,7 +331,11 @@ int main(int argc, char **argv) s->alacarte_link = 1; } - if (0 == ret) { + if (s->output_type == TCC_OUTPUT_PREPROCESS) { + if (s->outfile) + fclose(s->ppfp); + + } else if (0 == ret) { if (s->do_bench) tcc_print_stats(s, getclock_us() - start_time); if (s->output_type == TCC_OUTPUT_MEMORY) { -- cgit v1.3.1