diff options
author | Jon Turney <jon.turney@dronecode.org.uk> | 2019-05-08 12:28:19 +0100 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2019-05-20 11:29:17 -0700 |
commit | 6d6f6ad5fa62ec43cdfbd00aed59668348d72aaf (patch) | |
tree | d02c77d242b6f95b21bf38007038c8e1f44bd5e7 | |
parent | 58870fda1666c43a8bb793b52f658e37f4d51c67 (diff) | |
download | meson-6d6f6ad5fa62ec43cdfbd00aed59668348d72aaf.zip meson-6d6f6ad5fa62ec43cdfbd00aed59668348d72aaf.tar.gz meson-6d6f6ad5fa62ec43cdfbd00aed59668348d72aaf.tar.bz2 |
Remove a pointless conditional
After #4445, the code in both branches of this conditional is the same.
-rw-r--r-- | mesonbuild/backend/ninjabackend.py | 7 |
1 files changed, 2 insertions, 5 deletions
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' \ |