Do not write cp entry when it is empty. Closes #4602.

pull/4609/head
Jussi Pakkanen 6 years ago
parent f881532559
commit d64f93800f
  1. 3
      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]
cp_string = os.pathsep.join(cp_paths)
if cp_string:
return ['-cp', os.pathsep.join(cp_paths)]
return []
class CustomTargetIndex:

Loading…
Cancel
Save