diff options
author | Elliott Sales de Andrade <quantum.analyst@gmail.com> | 2017-04-15 22:43:17 -0400 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-04-16 12:32:35 +0300 |
commit | 5b917a6e174123be547ca9e55a280684410f291f (patch) | |
tree | c7cd7102241fc50af298cc63875655b71b8805bf /mesonbuild | |
parent | b0576e055aa60a32bcf38aac4526257a01d57b17 (diff) | |
download | meson-5b917a6e174123be547ca9e55a280684410f291f.zip meson-5b917a6e174123be547ca9e55a280684410f291f.tar.gz meson-5b917a6e174123be547ca9e55a280684410f291f.tar.bz2 |
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.
Diffstat (limited to 'mesonbuild')
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index fa7b9c0..3bf840d 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/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): |