diff options
author | Xavier Claessens <xavier.claessens@collabora.com> | 2021-02-05 14:21:30 -0500 |
---|---|---|
committer | Xavier Claessens <xavier.claessens@collabora.com> | 2021-02-05 18:17:08 -0500 |
commit | f63e168685c22a749502161355a7ea98a6c5344a (patch) | |
tree | 85642d39e70c827d697a1a059b965b2fcdd5f980 /mesonbuild/backend/ninjabackend.py | |
parent | b52794b24b61dbd39f4bacf7374ec9337caf89ff (diff) | |
download | meson-f63e168685c22a749502161355a7ea98a6c5344a.zip meson-f63e168685c22a749502161355a7ea98a6c5344a.tar.gz meson-f63e168685c22a749502161355a7ea98a6c5344a.tar.bz2 |
ninjabackend: Remove useless call to replace_paths()
Replacements are already done by eval_custom_target_command() and must
be done BEFORE calling as_meson_exe_cmdline() anyway. replace_paths() is
still used by generators.
Make eval_custom_target_command() more readable by handling error in the
final else case instead of in the middle of elif.
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 130a253..fcc7128 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -974,7 +974,6 @@ int dummy; elem.add_item('DEPFILE', rel_dfile) if target.console: elem.add_item('pool', 'console') - cmd = self.replace_paths(target, cmd) elem.add_item('COMMAND', cmd) elem.add_item('description', desc.format(target.name, cmd_type)) self.add_build(elem) |