diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2014-06-04 23:46:04 +0300 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2014-06-04 23:46:04 +0300 |
commit | e2257a59df9d52016e4658fac5c7171883ffee20 (patch) | |
tree | a927e3d5e2bc32818869a316acd15afceb179003 | |
parent | 63a7691040dae8f8aceca42d345d64b155ad45c7 (diff) | |
download | meson-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.py | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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. |