aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/interpreter
diff options
context:
space:
mode:
authorDaniel Mensinger <daniel@mensinger-ka.de>2022-04-23 12:56:52 +0200
committerEli Schwartz <eschwartz93@gmail.com>2022-05-24 18:00:49 -0400
commit7ef73e8f6a2555ffcbf6c10db4085236a64514a5 (patch)
treeb43ac98ceaf6a6b1cf331e6bd68ff2b5c8b86400 /mesonbuild/interpreter
parentc88c1e7dba168e62fe52f677717ec75ceaa84d5c (diff)
downloadmeson-7ef73e8f6a2555ffcbf6c10db4085236a64514a5.zip
meson-7ef73e8f6a2555ffcbf6c10db4085236a64514a5.tar.gz
meson-7ef73e8f6a2555ffcbf6c10db4085236a64514a5.tar.bz2
ast: cmake: Generate line numbers while printing the AST for better debugging
Diffstat (limited to 'mesonbuild/interpreter')
-rw-r--r--mesonbuild/interpreter/interpreter.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/interpreter/interpreter.py b/mesonbuild/interpreter/interpreter.py
index acbbf87..bf3f192 100644
--- a/mesonbuild/interpreter/interpreter.py
+++ b/mesonbuild/interpreter/interpreter.py
@@ -992,7 +992,7 @@ external dependencies (including libraries) must go to "dependencies".''')
# Debug print the generated meson file
from ..ast import AstIndentationGenerator, AstPrinter
- printer = AstPrinter()
+ printer = AstPrinter(update_ast_line_nos=True)
ast.accept(AstIndentationGenerator())
ast.accept(printer)
printer.post_process()