aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/vs2010backend.py
diff options
context:
space:
mode:
authorNicolas Schneider <nioncode+git@gmail.com>2016-03-15 23:37:50 +0100
committerNicolas Schneider <nioncode+git@gmail.com>2016-03-15 23:37:50 +0100
commit3871f22cc30cafd69abf483c3c1eae68d1ad170a (patch)
tree02e534e7717884e5652789b9e027bda52fb64f79 /mesonbuild/backend/vs2010backend.py
parente067c4a79d356105e8a636a2a4f5979e9ab3689d (diff)
downloadmeson-3871f22cc30cafd69abf483c3c1eae68d1ad170a.zip
meson-3871f22cc30cafd69abf483c3c1eae68d1ad170a.tar.gz
meson-3871f22cc30cafd69abf483c3c1eae68d1ad170a.tar.bz2
remove unnecessary os.path.join() calls
ofilenames and srcs are already absolute paths.
Diffstat (limited to 'mesonbuild/backend/vs2010backend.py')
-rw-r--r--mesonbuild/backend/vs2010backend.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py
index a72681b..0d7ac06 100644
--- a/mesonbuild/backend/vs2010backend.py
+++ b/mesonbuild/backend/vs2010backend.py
@@ -306,10 +306,8 @@ class Vs2010Backend(backends.Backend):
(srcs, ofilenames, cmd) = self.eval_custom_target_command(target, True)
cmd_templ = '''"%s" '''*len(cmd)
ET.SubElement(customstep, 'Command').text = cmd_templ % tuple(cmd)
- ET.SubElement(customstep, 'Outputs').text = ';'.join([os.path.join(self.environment.get_build_dir(), i)\
- for i in ofilenames])
- ET.SubElement(customstep, 'Inputs').text = ';'.join([os.path.join(self.environment.get_build_dir(), i) \
- for i in srcs])
+ ET.SubElement(customstep, 'Outputs').text = ';'.join(ofilenames)
+ ET.SubElement(customstep, 'Inputs').text = ';'.join(srcs)
ET.SubElement(root, 'Import', Project='$(VCTargetsPath)\Microsoft.Cpp.targets')
tree = ET.ElementTree(root)
tree.write(ofname, encoding='utf-8', xml_declaration=True)