diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-11-20 01:59:16 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2016-11-20 01:59:16 +0200 |
commit | 805847c4a0b081779fc376930f16c0c51032d9ce (patch) | |
tree | 75d4ea70a32a19b7b6ed92b1f3927f86ce97522f /mesonast.py | |
parent | 87340136900be1442a4c408a00a08afed02e1873 (diff) | |
download | meson-805847c4a0b081779fc376930f16c0c51032d9ce.zip meson-805847c4a0b081779fc376930f16c0c51032d9ce.tar.gz meson-805847c4a0b081779fc376930f16c0c51032d9ce.tar.bz2 |
Can remove source files from targets. But in a super hacky way.
Diffstat (limited to 'mesonast.py')
-rwxr-xr-x | mesonast.py | 3 |
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'): |