aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2014-06-04 23:46:04 +0300
committerJussi Pakkanen <jpakkane@gmail.com>2014-06-04 23:46:04 +0300
commite2257a59df9d52016e4658fac5c7171883ffee20 (patch)
treea927e3d5e2bc32818869a316acd15afceb179003
parent63a7691040dae8f8aceca42d345d64b155ad45c7 (diff)
downloadmeson-e2257a59df9d52016e4658fac5c7171883ffee20.zip
meson-e2257a59df9d52016e4658fac5c7171883ffee20.tar.gz
meson-e2257a59df9d52016e4658fac5c7171883ffee20.tar.bz2
Always give full path for build target executables as someone may try to invoke them.0.17.0
-rw-r--r--build.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/build.py b/build.py
index 43d08f2..a6df26f 100644
--- a/build.py
+++ b/build.py
@@ -599,7 +599,10 @@ class CustomTarget:
final_cmd.append(c.get_command())
elif isinstance(c, BuildTarget) or isinstance(c, CustomTarget):
self.dependencies.append(c)
- final_cmd.append(os.path.join(c.get_subdir(), c.get_filename()))
+ # GIR scanner will attempt to execute this binary but
+ # it assumes that it is in path, so always give it a full path.
+ totarget = os.path.join('.', c.get_subdir(), c.get_filename())
+ final_cmd.append(totarget)
elif isinstance(c, list):
# Hackety hack, only supports one level of flattening. Should really
# work to arbtrary depth.