diff options
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 2 | ||||
-rw-r--r-- | mesonbuild/rewriter.py | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 3c5cdf0..8af692c 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -769,7 +769,6 @@ int dummy; elem = NinjaBuildElement(self.all_outputs, target_name, 'phony', []) elem.add_dep(deps) - cmd = self.replace_paths(target, cmd) self.add_build(elem) self.processed_targets[target.get_id()] = True @@ -1018,7 +1017,6 @@ int dummy; generated_sources = self.get_target_generated_sources(target) generated_rel_srcs = [] for rel_src in generated_sources.keys(): - dirpart, fnamepart = os.path.split(rel_src) if rel_src.lower().endswith('.cs'): generated_rel_srcs.append(os.path.normpath(rel_src)) deps.append(os.path.normpath(rel_src)) diff --git a/mesonbuild/rewriter.py b/mesonbuild/rewriter.py index 9bb98cf..3712c07 100644 --- a/mesonbuild/rewriter.py +++ b/mesonbuild/rewriter.py @@ -854,7 +854,7 @@ class Rewriter: while raw[end] in [' ', '\n', '\t']: end += 1 - raw = files[i['file']]['raw'] = raw[:start] + i['str'] + raw[end:] + files[i['file']]['raw'] = raw[:start] + i['str'] + raw[end:] for i in str_list: if i['action'] in ['modify', 'rm']: |