use idiomatic python for membership tests

"X not in Y" is preferred over "not X in Y", as the former is more
readable.
pull/9348/head
Eli Schwartz 3 years ago
parent 5a8e066c56
commit 52c4df1ba7
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 2
      mesonbuild/compilers/mixins/clike.py

@ -456,7 +456,7 @@ class CLikeCompiler(Compiler):
# on MSVC compiler and linker flags must be separated by the "/link" argument
# at this point, the '/link' argument may already be part of extra_args, otherwise, it is added here
if self.linker_to_compiler_args([]) == ['/link'] and largs != [] and not '/link' in extra_args:
if self.linker_to_compiler_args([]) == ['/link'] and largs != [] and '/link' not in extra_args:
extra_args += ['/link']
args = cargs + extra_args + largs

Loading…
Cancel
Save