aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/vs2010backend.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-12-15 13:35:46 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-12-15 14:58:43 +0530
commitd5f7ba862bb37ad75b68e007b8b55f40b6f6fd19 (patch)
tree67f17d6ba20b1cdbbc3499c4f74f60a2c51aba4e /mesonbuild/backend/vs2010backend.py
parentde0ce7f25c1bc1038fdca66237281722eca64494 (diff)
downloadmeson-d5f7ba862bb37ad75b68e007b8b55f40b6f6fd19.zip
meson-d5f7ba862bb37ad75b68e007b8b55f40b6f6fd19.tar.gz
meson-d5f7ba862bb37ad75b68e007b8b55f40b6f6fd19.tar.bz2
gnome.mkenums: Use absolute paths for all commandline args
Closes #973 test cases/vala/8 generated sources/ tests this.
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 d043455..f3e9b4f 100644
--- a/mesonbuild/backend/vs2010backend.py
+++ b/mesonbuild/backend/vs2010backend.py
@@ -392,6 +392,9 @@ class Vs2010Backend(backends.Backend):
root = self.create_basic_crap(target)
action = ET.SubElement(root, 'ItemDefinitionGroup')
customstep = ET.SubElement(action, 'CustomBuildStep')
+ # We need to always use absolute paths because our invocation is always
+ # from the target dir, not the build root.
+ target.absolute_paths = True
(srcs, ofilenames, cmd) = self.eval_custom_target_command(target, True)
cmd_templ = '''"%s" '''*len(cmd)
ET.SubElement(customstep, 'Command').text = cmd_templ % tuple(cmd)