1.1 --- a/translator.py Fri Feb 24 13:27:44 2017 +0100
1.2 +++ b/translator.py Fri Feb 24 16:13:28 2017 +0100
1.3 @@ -47,7 +47,7 @@
1.4 self.optimiser = optimiser
1.5 self.output = output
1.6
1.7 - def to_output(self):
1.8 + def to_output(self, debug=False, gc_sections=False):
1.9
1.10 "Write a program to the configured output directory."
1.11
1.12 @@ -60,7 +60,7 @@
1.13
1.14 # Clean the output directory of irrelevant data.
1.15
1.16 - self.check_output()
1.17 + self.check_output("debug=%r gc_sections=%r" % (debug, gc_sections))
1.18
1.19 for module in self.importer.modules.values():
1.20 output_filename = join(output, "%s.c" % module.name)