aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild
diff options
context:
space:
mode:
authorNiklas Claesson <niklas.claesson@cosylab.com>2017-10-10 00:30:57 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2017-10-19 20:18:46 +0300
commit3fcf4ad272e7901844e8b6465f866526c1d7e293 (patch)
tree0ccb30787562d1682f9b0f8d95ebb59dda67902d /mesonbuild
parent6083eb29d0d5d81510a588dc64f5533ef58bb8e0 (diff)
downloadmeson-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.py8
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,