aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/vs2010backend.py
diff options
context:
space:
mode:
authorJon Turney <jon.turney@dronecode.org.uk>2020-06-03 17:05:55 +0100
committerJon Turney <jon.turney@dronecode.org.uk>2020-09-20 12:57:44 +0100
commitc72625c2a74b198721c6e1f0cb0b653a4cd9addc (patch)
treecbf0ed5f0c65e80335905060c5280822d965f3fe /mesonbuild/backend/vs2010backend.py
parent007ece4659bba1f3b0aaa4dd5b9cacf0bbb205db (diff)
downloadmeson-c72625c2a74b198721c6e1f0cb0b653a4cd9addc.zip
meson-c72625c2a74b198721c6e1f0cb0b653a4cd9addc.tar.gz
meson-c72625c2a74b198721c6e1f0cb0b653a4cd9addc.tar.bz2
Improve description of meson wrapped custom commands
I've always found ninja reporting 'a meson_exe.py custom command' unclear and confusing. Instead say we are invoking a custom command, wrapped by meson, and why.
Diffstat (limited to 'mesonbuild/backend/vs2010backend.py')
-rw-r--r--mesonbuild/backend/vs2010backend.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py
index 3b0f842..c2969ed 100644
--- a/mesonbuild/backend/vs2010backend.py
+++ b/mesonbuild/backend/vs2010backend.py
@@ -150,7 +150,7 @@ class Vs2010Backend(backends.Backend):
# Always use a wrapper because MSBuild eats random characters when
# there are many arguments.
tdir_abs = os.path.join(self.environment.get_build_dir(), self.get_target_dir(target))
- cmd = self.as_meson_exe_cmdline(
+ cmd, _ = self.as_meson_exe_cmdline(
'generator ' + cmd[0],
cmd[0],
cmd[1:],
@@ -565,12 +565,12 @@ class Vs2010Backend(backends.Backend):
# there are many arguments.
tdir_abs = os.path.join(self.environment.get_build_dir(), self.get_target_dir(target))
extra_bdeps = target.get_transitive_build_target_deps()
- wrapper_cmd = self.as_meson_exe_cmdline(target.name, target.command[0], cmd[1:],
- # All targets run from the target dir
- workdir=tdir_abs,
- extra_bdeps=extra_bdeps,
- capture=ofilenames[0] if target.capture else None,
- force_serialize=True)
+ wrapper_cmd, _ = self.as_meson_exe_cmdline(target.name, target.command[0], cmd[1:],
+ # All targets run from the target dir
+ workdir=tdir_abs,
+ extra_bdeps=extra_bdeps,
+ capture=ofilenames[0] if target.capture else None,
+ force_serialize=True)
if target.build_always_stale:
# Use a nonexistent file to always consider the target out-of-date.
ofilenames += [self.nonexistent_file(os.path.join(self.environment.get_scratch_dir(),