aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
authorPatrick Griffis <tingping@tingping.se>2017-07-19 23:15:41 -0400
committerJussi Pakkanen <jpakkane@gmail.com>2017-07-21 20:16:08 +0300
commit67f0a1a44db7c7de4b37ac34b14ac866708ccbdb (patch)
treee39c62158aa70cddbcea71225744a8add13b01c5 /mesonbuild/backend/ninjabackend.py
parent035b2525aca843a5f0fdba8f96a4f40999504d99 (diff)
downloadmeson-67f0a1a44db7c7de4b37ac34b14ac866708ccbdb.zip
meson-67f0a1a44db7c7de4b37ac34b14ac866708ccbdb.tar.gz
meson-67f0a1a44db7c7de4b37ac34b14ac866708ccbdb.tar.bz2
Fix run_target() accepting ConfigureFile for command
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index f10d516..222e01d 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -560,6 +560,8 @@ int dummy;
elif isinstance(texe, build.CustomTarget):
deps.append(self.get_target_filename(texe))
cmd += [os.path.join(self.environment.get_build_dir(), self.get_target_filename(texe))]
+ elif isinstance(texe, mesonlib.File):
+ cmd.append(texe.absolute_path(self.environment.get_source_dir(), self.environment.get_build_dir()))
else:
cmd.append(target.command)
cmd += arg_strings