From 6d6f6ad5fa62ec43cdfbd00aed59668348d72aaf Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Wed, 8 May 2019 12:28:19 +0100 Subject: Remove a pointless conditional After #4445, the code in both branches of this conditional is the same. --- mesonbuild/backend/ninjabackend.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'mesonbuild/backend') diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py index 69682d4..8915a59 100644 --- a/mesonbuild/backend/ninjabackend.py +++ b/mesonbuild/backend/ninjabackend.py @@ -1532,11 +1532,8 @@ int dummy; def generate_dynamic_link_rules(self): num_pools = self.environment.coredata.backend_options['backend_max_links'].value - ctypes = [(self.build.compilers, False)] - if self.environment.is_cross_build(): - ctypes.append((self.build.cross_compilers, True)) - else: - ctypes.append((self.build.cross_compilers, True)) + ctypes = [(self.build.compilers, False), + (self.build.cross_compilers, True)] for (complist, is_cross) in ctypes: for langname, compiler in complist.items(): if langname == 'java' \ -- cgit v1.1