aboutsummaryrefslogtreecommitdiff
path: root/mesonast.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonast.py')
-rwxr-xr-xmesonast.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/mesonast.py b/mesonast.py
index f0f09e8..e269b0c 100755
--- a/mesonast.py
+++ b/mesonast.py
@@ -35,7 +35,8 @@ if __name__ == '__main__':
source_root = sys.argv[1]
ast = mesonbuild.astinterpreter.AstInterpreter(source_root, '')
try:
- ast.add_source('trivialprog', 'newfile.c')
+# ast.add_source('trivialprog', 'newfile.c')
+ ast.remove_source('trivialprog', 'newfile.c')
except Exception as e:
if isinstance(e, MesonException):
if hasattr(e, 'file') and hasattr(e, 'lineno') and hasattr(e, 'colno'):