diff options
author | makise-homura <akemi_homura@kurisa.ch> | 2018-02-21 18:29:25 +0300 |
---|---|---|
committer | makise-homura <akemi_homura@kurisa.ch> | 2018-02-21 18:29:25 +0300 |
commit | 22a83817c8685733adaa94c21b9b248b3e62f5f8 (patch) | |
tree | 5b660707d18d4ea30a2488de734b8d540d28609d | |
parent | 8236bed11b03c46508227dd4f9490482453c7959 (diff) | |
download | meson-22a83817c8685733adaa94c21b9b248b3e62f5f8.zip meson-22a83817c8685733adaa94c21b9b248b3e62f5f8.tar.gz meson-22a83817c8685733adaa94c21b9b248b3e62f5f8.tar.bz2 |
Fixed syntax issues (for 'in' operator)
-rw-r--r-- | mesonbuild/environment.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mesonbuild/environment.py b/mesonbuild/environment.py index ab3bfc9..b3b4a55 100644 --- a/mesonbuild/environment.py +++ b/mesonbuild/environment.py @@ -498,7 +498,7 @@ class Environment: continue version = search_version(out) full_version = out.split('\n', 1)[0] - if 'Free Software Foundation' or ('e2k' and 'lcc') in out: + if 'Free Software Foundation' in out or ('e2k' in out and 'lcc' in out): defines = self.get_gnu_compiler_defines(compiler) if not defines: popen_exceptions[' '.join(compiler)] = 'no pre-processor defines' @@ -611,7 +611,7 @@ class Environment: popen_exceptions[' '.join(compiler + arg)] = e continue version = search_version(out) - if 'Free Software Foundation' or ('e2k' and 'lcc') in out: + if 'Free Software Foundation' in out or ('e2k' in out and 'lcc' in out): defines = self.get_gnu_compiler_defines(compiler) if not defines: popen_exceptions[' '.join(compiler)] = 'no pre-processor defines' @@ -638,7 +638,7 @@ class Environment: popen_exceptions[' '.join(compiler + arg)] = e continue version = search_version(out) - if 'Free Software Foundation' or ('e2k' and 'lcc') in out: + if 'Free Software Foundation' in out or ('e2k' in out and 'lcc' in out): defines = self.get_gnu_compiler_defines(compiler) if not defines: popen_exceptions[' '.join(compiler)] = 'no pre-processor defines' |