diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-19 21:12:14 +0530 |
---|---|---|
committer | Nirbheek Chauhan <nirbheek@centricular.com> | 2016-12-19 22:31:26 +0530 |
commit | 8e06ab6a9530064eba6a8f27411352c9121108b5 (patch) | |
tree | 785d3426f2a869754e360d32f9d54d0c1ff4b8bb /mesonbuild/mesonmain.py | |
parent | c854ae1801380c91b1e751e516ec4feeadb6d511 (diff) | |
download | meson-8e06ab6a9530064eba6a8f27411352c9121108b5.zip meson-8e06ab6a9530064eba6a8f27411352c9121108b5.tar.gz meson-8e06ab6a9530064eba6a8f27411352c9121108b5.tar.bz2 |
Use a script to clean-up custom-target output dirs
The script will manually delete all custom_target outputs that are
directories instead of files. This is needed because on platforms other
than Windows, Ninja only deletes directories while cleaning if they are
empty.
Closes #1220
Diffstat (limited to 'mesonbuild/mesonmain.py')
-rw-r--r-- | mesonbuild/mesonmain.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/mesonmain.py b/mesonbuild/mesonmain.py index 3c644a8..e85ef17 100644 --- a/mesonbuild/mesonmain.py +++ b/mesonbuild/mesonmain.py @@ -198,6 +198,9 @@ def run_script_command(args): if cmdname == 'exe': import mesonbuild.scripts.meson_exe as abc cmdfunc = abc.run + elif cmdname == 'cleantrees': + import mesonbuild.scripts.cleantrees as abc + cmdfunc = abc.run elif cmdname == 'install': import mesonbuild.scripts.meson_install as abc cmdfunc = abc.run |