diff options
author | Nicolas Schneider <nioncode+git@gmail.com> | 2016-03-15 23:26:12 +0100 |
---|---|---|
committer | Nicolas Schneider <nioncode+git@gmail.com> | 2016-03-15 23:26:12 +0100 |
commit | e067c4a79d356105e8a636a2a4f5979e9ab3689d (patch) | |
tree | 9104d10a707871ae41f29cec8079793cf2f8baa7 | |
parent | a3004652eaa8eef877ccf009e7a6ec8e32ad3475 (diff) | |
download | meson-e067c4a79d356105e8a636a2a4f5979e9ab3689d.zip meson-e067c4a79d356105e8a636a2a4f5979e9ab3689d.tar.gz meson-e067c4a79d356105e8a636a2a4f5979e9ab3689d.tar.bz2 |
fix eval_custom_target_command() to use absolute paths for output files
-rw-r--r-- | mesonbuild/backend/backends.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/mesonbuild/backend/backends.py b/mesonbuild/backend/backends.py index 286afa9..5c2f709 100644 --- a/mesonbuild/backend/backends.py +++ b/mesonbuild/backend/backends.py @@ -381,7 +381,11 @@ class Backend(): return exe_arr def eval_custom_target_command(self, target, absolute_paths=False): - ofilenames = [os.path.join(self.get_target_dir(target), i) for i in target.output] + 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. |