aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/vs2010backend.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-04-08 09:27:45 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-04-09 23:11:36 +0530
commit68c8bb49c3d167e26666561f907146280111481b (patch)
tree11cc2cb80ed04303b5ab96a6c2ce8d850cc294bb /mesonbuild/backend/vs2010backend.py
parenta51d582c725ee39e9f0308e03e20179afd16178a (diff)
downloadmeson-68c8bb49c3d167e26666561f907146280111481b.zip
meson-68c8bb49c3d167e26666561f907146280111481b.tar.gz
meson-68c8bb49c3d167e26666561f907146280111481b.tar.bz2
vs: Pass absolute path of files to run_target
Fixes https://github.com/mesonbuild/meson/issues/957 for the VS backend
Diffstat (limited to 'mesonbuild/backend/vs2010backend.py')
-rw-r--r--mesonbuild/backend/vs2010backend.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py
index 139360c..feae79e 100644
--- a/mesonbuild/backend/vs2010backend.py
+++ b/mesonbuild/backend/vs2010backend.py
@@ -418,6 +418,9 @@ class Vs2010Backend(backends.Backend):
cmd.append(os.path.join(self.environment.get_build_dir(), self.get_target_filename(i)))
elif isinstance(i, dependencies.ExternalProgram):
cmd += i.get_command()
+ elif isinstance(i, File):
+ relfname = i.rel_to_builddir(self.build_to_src)
+ cmd.append(os.path.join(self.environment.get_build_dir(), relfname))
else:
cmd.append(i)
cmd_templ = '''"%s" ''' * len(cmd)