aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/vs2010backend.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-02-19 03:19:13 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-02-19 03:49:31 +0530
commit7e805a019ae4d923403af8032776c0c302e3a50c (patch)
treef235ff5c0039b8e43469dce0d9606bb30a722595 /mesonbuild/backend/vs2010backend.py
parent280346da3ac5904ec097afe89ef45ad34bd4a173 (diff)
downloadmeson-7e805a019ae4d923403af8032776c0c302e3a50c.zip
meson-7e805a019ae4d923403af8032776c0c302e3a50c.tar.gz
meson-7e805a019ae4d923403af8032776c0c302e3a50c.tar.bz2
find_program: Fix implementation of .path()
And actually test that prog.path() works. The earlier test was just running the command without checking if it succeeded. Also make everything use prog.get_command() or get_path() instead of accessing the internal member prog.fullpath directly.
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 666da7d..547889c 100644
--- a/mesonbuild/backend/vs2010backend.py
+++ b/mesonbuild/backend/vs2010backend.py
@@ -395,7 +395,7 @@ class Vs2010Backend(backends.Backend):
if isinstance(i, build.BuildTarget):
cmd.append(os.path.join(self.environment.get_build_dir(), self.get_target_filename(i)))
elif isinstance(i, dependencies.ExternalProgram):
- cmd += i.fullpath
+ cmd += i.get_command()
else:
cmd.append(i)
cmd_templ = '''"%s" ''' * len(cmd)