Skip all whole archive args if there aren't any.

No need to turn it on and off again if there's nothing requiring it.
pull/166/merge
Elliott Sales de Andrade 8 years ago committed by Jussi Pakkanen
parent b0576e055a
commit 5b917a6e17
  1. 2
      mesonbuild/backend/ninjabackend.py

@ -2189,7 +2189,7 @@ rule FORTRAN_DEP_HACK
def get_link_whole_args(self, linker, target):
target_args = self.build_target_link_arguments(linker, target.link_whole_targets)
return linker.get_link_whole_for(target_args)
return linker.get_link_whole_for(target_args) if len(target_args) else []
def generate_link(self, target, outfile, outname, obj_list, linker, extra_args=[]):
if isinstance(target, build.StaticLibrary):

Loading…
Cancel
Save