aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/vs2010backend.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2020-09-17 17:50:09 +0530
committerNirbheek Chauhan <nirbheek.chauhan@gmail.com>2020-09-17 22:25:37 +0000
commitfaba48d85392ba08c7130e7872e19c65ebbb516a (patch)
treeff0d11f108f24947373638c56f444612472e2f79 /mesonbuild/backend/vs2010backend.py
parent9b8ac9db32f245a917c50103cc02154dac30ba70 (diff)
downloadmeson-faba48d85392ba08c7130e7872e19c65ebbb516a.zip
meson-faba48d85392ba08c7130e7872e19c65ebbb516a.tar.gz
meson-faba48d85392ba08c7130e7872e19c65ebbb516a.tar.bz2
backends: Treat build target as generator only when it's the first arg
Otherwise it might be an argument to a script that just inspects the binary itself.
Diffstat (limited to 'mesonbuild/backend/vs2010backend.py')
-rw-r--r--mesonbuild/backend/vs2010backend.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py
index a9896a1..3b0f842 100644
--- a/mesonbuild/backend/vs2010backend.py
+++ b/mesonbuild/backend/vs2010backend.py
@@ -121,7 +121,7 @@ class Vs2010Backend(backends.Backend):
infilelist = genlist.get_inputs()
outfilelist = genlist.get_outputs()
source_dir = os.path.join(down, self.build_to_src, genlist.subdir)
- exe_arr = self.build_target_to_cmd_array(exe)
+ exe_arr = self.build_target_to_cmd_array(exe, True)
idgroup = ET.SubElement(parent_node, 'ItemGroup')
for i in range(len(infilelist)):
if len(infilelist) == len(outfilelist):