aboutsummaryrefslogtreecommitdiff
path: root/mesonast.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2016-11-20 01:46:16 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2016-11-20 01:48:26 +0200
commit87340136900be1442a4c408a00a08afed02e1873 (patch)
tree06e52ede7834de53d244cf18e887f90dc562a3f2 /mesonast.py
parentc41805f012fe7305dfba978f6cb70741d782c57f (diff)
downloadmeson-87340136900be1442a4c408a00a08afed02e1873.zip
meson-87340136900be1442a4c408a00a08afed02e1873.tar.gz
meson-87340136900be1442a4c408a00a08afed02e1873.tar.bz2
I can haz source files added to targets.
Diffstat (limited to 'mesonast.py')
-rwxr-xr-xmesonast.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonast.py b/mesonast.py
index e24c31e..f0f09e8 100755
--- a/mesonast.py
+++ b/mesonast.py
@@ -35,7 +35,7 @@ if __name__ == '__main__':
source_root = sys.argv[1]
ast = mesonbuild.astinterpreter.AstInterpreter(source_root, '')
try:
- ast.dump()
+ ast.add_source('trivialprog', 'newfile.c')
except Exception as e:
if isinstance(e, MesonException):
if hasattr(e, 'file') and hasattr(e, 'lineno') and hasattr(e, 'colno'):