diff options
author | Niklas Claesson <niklas.claesson@cosylab.com> | 2017-10-10 00:30:57 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-10-19 20:18:46 +0300 |
commit | 3fcf4ad272e7901844e8b6465f866526c1d7e293 (patch) | |
tree | 0ccb30787562d1682f9b0f8d95ebb59dda67902d /mesonbuild | |
parent | 6083eb29d0d5d81510a588dc64f5533ef58bb8e0 (diff) | |
download | meson-3fcf4ad272e7901844e8b6465f866526c1d7e293.zip meson-3fcf4ad272e7901844e8b6465f866526c1d7e293.tar.gz meson-3fcf4ad272e7901844e8b6465f866526c1d7e293.tar.bz2 |
MSI: Fix regenerate with visual studio
Fixes #2461
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/scripts/regen_checker.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/mesonbuild/scripts/regen_checker.py b/mesonbuild/scripts/regen_checker.py index 4125f40..53c5428 100644 --- a/mesonbuild/scripts/regen_checker.py +++ b/mesonbuild/scripts/regen_checker.py @@ -32,9 +32,11 @@ def need_regen(regeninfo, regen_timestamp): return False def regen(regeninfo, mesonscript, backend): - cmd = [sys.executable, - mesonscript, - '--internal', + if sys.executable.lower().endswith('meson.exe'): + cmd_exe = [sys.executable] + else: + cmd_exe = [sys.executable, mesonscript] + cmd = cmd_exe + ['--internal', 'regenerate', regeninfo.build_dir, regeninfo.source_dir, |