diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2018-12-08 21:43:42 +0200 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2018-12-09 16:24:37 +0200 |
commit | d64f93800f0042de5e27ce187458e424e60f25e8 (patch) | |
tree | 371aee7896846bcc60e567a48b86e9ae2bfaa9a7 | |
parent | f881532559196c9b831a3e0d13cf6470fe00f52e (diff) | |
download | meson-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.py | 5 |
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: |