fix eval_custom_target_command() to use absolute paths for output files

pull/452/head
Nicolas Schneider 9 years ago
parent a3004652ea
commit e067c4a79d
  1. 4
      mesonbuild/backend/backends.py

@ -381,7 +381,11 @@ class Backend():
return exe_arr
def eval_custom_target_command(self, target, absolute_paths=False):
if not absolute_paths:
ofilenames = [os.path.join(self.get_target_dir(target), i) for i in target.output]
else:
ofilenames = [os.path.join(self.environment.get_build_dir(), self.get_target_dir(target), i) \
for i in target.output]
srcs = []
outdir = self.get_target_dir(target)
# Many external programs fail on empty arguments.

Loading…
Cancel
Save