aboutsummaryrefslogtreecommitdiff
path: root/backends.py
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2015-12-26 20:28:23 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2015-12-28 18:35:41 +0200
commit7e1df7540d519f63b4309b380e69b10ca5bff103 (patch)
treeba210c90a5c74ec81ffeb4bb6d1d5323f1d4cc44 /backends.py
parent5e12c03db6c0bf7b266fc351dc24e13d4e6f737e (diff)
downloadmeson-7e1df7540d519f63b4309b380e69b10ca5bff103.zip
meson-7e1df7540d519f63b4309b380e69b10ca5bff103.tar.gz
meson-7e1df7540d519f63b4309b380e69b10ca5bff103.tar.bz2
Handle custom targets that produce static libraries that are then linked to other targets.
Diffstat (limited to 'backends.py')
-rw-r--r--backends.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/backends.py b/backends.py
index c996cb8..64d3860 100644
--- a/backends.py
+++ b/backends.py
@@ -358,6 +358,9 @@ class Backend():
ofilenames = [os.path.join(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.
+ if outdir == '':
+ outdir = '.'
if absolute_paths:
outdir = os.path.join(self.environment.get_build_dir(), outdir)
for i in target.sources: