aboutsummaryrefslogtreecommitdiff
path: root/tcc.c
diff options
context:
space:
mode:
authorgrischka <grischka>2016-10-01 21:52:11 +0200
committergrischka <grischka>2016-10-01 21:52:11 +0200
commit643a1b8848d3d9cb703a7561c7f89191e8511cf1 (patch)
treecfe321d31366d2675588e2b8ec29946f57426e5f /tcc.c
parentafdbc5b8152debb2ef053720b95f37a4cf4106eb (diff)
downloadtinycc-643a1b8848d3d9cb703a7561c7f89191e8511cf1.tar.gz
tinycc-643a1b8848d3d9cb703a7561c7f89191e8511cf1.tar.bz2
tcc -E: add one space in cases: tiny solution
replaces f5f82abc99424c4ece836000934fcf57a867c635 Also: fix tcc flags in Makefile, fix tcc -E
Diffstat (limited to 'tcc.c')
-rw-r--r--tcc.c6
1 files changed, 5 insertions, 1 deletions
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) {