aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 1001c51..fe3a9f4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -52,7 +52,7 @@ int main(int argc,char **argv)
print_ast(translation_unit);
}else if(options->target==OPTION_TARGET_C)
{
- ast_to_c(stdout,translation_unit);
+ ast_to_c(options->output_name,translation_unit);
}
delete_ast(translation_unit);
}