Commit f46abb9f authored by Stefan Behnel's avatar Stefan Behnel

add compiler option to disable C code comment generation

parent 1bee642a
......@@ -1679,6 +1679,7 @@ class CCodeWriter(object):
self.last_marked_pos = pos
self.last_pos = None
self.write("\n")
if Options.emit_code_comments:
self.indent()
self.write("/* %s */\n" % self._build_marker(pos))
if trace and self.funcstate and self.funcstate.can_trace and self.globalstate.directives['linetrace']:
......
......@@ -10,6 +10,11 @@ from __future__ import absolute_import
cache_builtins = True
embed_pos_in_docstring = False
# Copy the original source code line by line into C code comments
# in the generated code file to help with understanding the output.
emit_code_comments = True
gcc_branch_hints = True
pre_import = None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment