aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/ninjabackend.py
diff options
context:
space:
mode:
Diffstat (limited to 'mesonbuild/backend/ninjabackend.py')
-rw-r--r--mesonbuild/backend/ninjabackend.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/mesonbuild/backend/ninjabackend.py b/mesonbuild/backend/ninjabackend.py
index 4c10e8d..40776a9 100644
--- a/mesonbuild/backend/ninjabackend.py
+++ b/mesonbuild/backend/ninjabackend.py
@@ -268,7 +268,7 @@ int dummy;
return False
suffix = os.path.splitext(source)[1][1:]
for lang in self.langs_cant_unity:
- if not lang in target.compilers:
+ if lang not in target.compilers:
continue
if suffix in target.compilers[lang].file_suffixes:
return False
@@ -433,7 +433,7 @@ int dummy;
def process_target_dependencies(self, target, outfile):
for t in target.get_dependencies():
tname = t.get_basename() + t.type_suffix()
- if not tname in self.processed_targets:
+ if tname not in self.processed_targets:
self.generate_target(t, outfile)
def custom_target_generator_inputs(self, target, outfile):
@@ -1283,7 +1283,6 @@ int dummy;
outfile.write(command)
outfile.write(description)
outfile.write('\n')
- scriptdir = self.environment.get_script_dir()
outfile.write('\n')
symrule = 'rule SHSYM\n'
symcmd = ' command = "%s" "%s" %s %s %s %s $CROSS\n' % (ninja_quote(sys.executable),
@@ -2077,7 +2076,7 @@ rule FORTRAN_DEP_HACK
result = []
for ld in link_deps:
prospective = self.get_target_dir(ld)
- if not prospective in result:
+ if prospective not in result:
result.append(prospective)
return result