Skip to content

Commit e2257a5

Browse files
committed
Always give full path for build target executables as someone may try to invoke them.
1 parent 63a7691 commit e2257a5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

build.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,10 @@ def process_kwargs(self, kwargs):
599599
final_cmd.append(c.get_command())
600600
elif isinstance(c, BuildTarget) or isinstance(c, CustomTarget):
601601
self.dependencies.append(c)
602-
final_cmd.append(os.path.join(c.get_subdir(), c.get_filename()))
602+
# GIR scanner will attempt to execute this binary but
603+
# it assumes that it is in path, so always give it a full path.
604+
totarget = os.path.join('.', c.get_subdir(), c.get_filename())
605+
final_cmd.append(totarget)
603606
elif isinstance(c, list):
604607
# Hackety hack, only supports one level of flattening. Should really
605608
# work to arbtrary depth.

0 commit comments

Comments
 (0)