aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2018-12-08 21:43:42 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2018-12-09 16:24:37 +0200
commitd64f93800f0042de5e27ce187458e424e60f25e8 (patch)
tree371aee7896846bcc60e567a48b86e9ae2bfaa9a7
parentf881532559196c9b831a3e0d13cf6470fe00f52e (diff)
downloadmeson-d64f93800f0042de5e27ce187458e424e60f25e8.zip
meson-d64f93800f0042de5e27ce187458e424e60f25e8.tar.gz
meson-d64f93800f0042de5e27ce187458e424e60f25e8.tar.bz2
Do not write cp entry when it is empty. Closes #4602.
-rw-r--r--mesonbuild/build.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/mesonbuild/build.py b/mesonbuild/build.py
index 60253ed..1fcbc04 100644
--- a/mesonbuild/build.py
+++ b/mesonbuild/build.py
@@ -2143,7 +2143,10 @@ class Jar(BuildTarget):
def get_classpath_args(self):
cp_paths = [os.path.join(l.get_subdir(), l.get_filename()) for l in self.link_targets]
- return ['-cp', os.pathsep.join(cp_paths)]
+ cp_string = os.pathsep.join(cp_paths)
+ if cp_string:
+ return ['-cp', os.pathsep.join(cp_paths)]
+ return []
class CustomTargetIndex: