diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-11-20 01:46:16 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-11-20 01:48:26 +0200 |
commit | 87340136900be1442a4c408a00a08afed02e1873 (patch) | |
tree | 06e52ede7834de53d244cf18e887f90dc562a3f2 /mesonast.py | |
parent | c41805f012fe7305dfba978f6cb70741d782c57f (diff) | |
download | meson-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-x | mesonast.py | 2 |
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'): |